雪花Python皮Okta连接

yacmzcpb  于 2022-11-08  发布在  PyCharm
关注(0)|答案(1)|浏览(156)

我正在尝试使用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)

有人有办法让它运转吗?

ryevplcw

ryevplcw1#

我认为您的account_name不正确。它的格式应该是'<your_account_name>..<region_id>'(例如'xy12345.east-us-2.azure')。使用您示例中的URL,它应该是location

相关问题