雪花Python Okta连接

2024-05-20 08:36:26 发布

您现在位置: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错误
1条回答
网友
1楼 · 发布于 2024-05-20 08:36:26

我认为你的户名不对。它应该以“<;您的帐户名>&书信电报;区域id>;'(例如“xy12345.east-us-2.azure”)。使用示例中的URL,它应该是location

相关问题 更多 >