-
Notifications
You must be signed in to change notification settings - Fork 527
Open
Labels
bugstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team
Description
Python version
3.11.1
Operating system and processor architecture
Windows (x64)
Installed packages
snowflake-connector-pythonWhat did you do?
Tried to connect snowflake through python connector.What did you expect to see?
Hi,
When I try to use OKTA Authenticator in snowflake connector python, I have seen a bug in code.
In OKTA auth class file there is a function is_prefix_equal() which can be used to compare 2 url's port, scheme and host. There I can see in port2 variable its extracting url1's port again instead of url2.
Here I'm attaching an image for reference.
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)Metadata
Metadata
Assignees
Labels
bugstatus-triage_doneInitial triage done, will be further handled by the driver teamInitial triage done, will be further handled by the driver team