snowflakedb / snowflakedb/snowflake-connector-python

SNOW-2126519: Diagnostic does not report for every URL type

Open
#2,342 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug status-triage_done
Dominant language
Python
Stars
730
Forks
574
Avg merge
5h 45m
Merged PRs (30d)
16

Description

Python version

3.12

Operating system and processor architecture

N/A

Installed packages
N/A
What did you do?
Ran the diagnostic report and the report only covers:

SNOWFLAKE_URL
STAGE
OCSP_RESPONDER
OUT_OF_BAND_TELEMETRY

We now have the following:

CLIENT_FAILOVER
DUO_SECURITY
OCSP_CACHE
OCSP_RESPONDER
OUT_OF_BAND_TELEMETRY
SNOWFLAKE_DEPLOYMENT
SNOWFLAKE_DEPLOYMENT_REGIONLESS
SNOWSIGHT_CLIENT_FAILOVER
SNOWSIGHT_DEPLOYMENT
SNOWSQL_REPO
SPCS_INGRESS_REGIONLESS
SPCS_REGISTRY_REGIONLESS
STAGE
What did you expect to see?

We need to update the diagnostic report to cover all URL types, we can ignore SNOWSQL_REPO probably.

Can you set logging to DEBUG and collect the logs?
import logging
import os

for logger_name in ('snowflake.connector',):
    logger = logging.getLogger(logger_name)
    logger.setLevel(logging.DEBUG)
    ch = logging.StreamHandler()
    ch.setLevel(logging.DEBUG)
    ch.setFormatter(logging.Formatter('%(asctime)s - %(threadName)s %(filename)s:%(lineno)d - %(funcName)s() - %(levelname)s - %(message)s'))
    logger.addHandler(ch)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.