我正在尝试使用 snowflake.connector 库和 OKTA 身份验证将 python 连接到雪花。我正在使用以下代码执行但出现错误:
Failed to execute request: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url
我正在使用的代码
username = username for okta
authenticator = 'https://companyname.okta.com'
account_name = 'https://xy12345.us-east-2.snowflakecomputing.com/'
warehouse = ''
password = password for okta
conn = sf.connect(user = username, authenticator = authenticator, account = account_name, password = password)
有人有想法让它发挥作用吗?
最佳答案
我认为您的 account_name 不正确。它应该采用“location
。
关于python - 雪花 Python Okta 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63726745/