雪花Python Okta连接

2024-05-28 22:53:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用snowflake.connector库和OKTA身份验证将python连接到snowflake。我正在使用以下代码执行,但出现错误:

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)

有人有办法让它发挥作用吗


Tags: namehttpscomauthenticator身份验证forconnector错误

热门问题