Intermittent problem with DB connection while using Snowflake and SSO
See original GitHub issueHi,
I am using Window 10 + Anaconda (Python 3.7.6) + DBT (v0.18.0) to access Snowflake.
When I do DBT run, I don’t have any problem while using username/password in profiles.yml. However, when I switch to SSO, I always have intermittent problem and the run fails half way, and the error message is
ERROR: Database Error
250007 (08001): Failed to connect to DB: <account>.snowflakecomputing.com:443, Invalid HTTP request from web browser. Idp authentication could have failed.
In the web browser, I can see the page opens up site
https://<account>.snowflakecomputing.com/fed/login
saying
Redirecting to Snowflake client in 1 seconds…
, then the site is redirected to
http://localhost:<port>/?token=<my-long-token>
but I gets the error message on the webpage saying
This site can’t be reached
My colleagues seem to get the same problem. Any suggestions, or what information could be helpful to trace the problem?
thanks,
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Intermittent problem with DB connection while using ... - GitHub
Hi, I am using Window 10 + Anaconda (Python 3.7.6) + DBT (v0.18.0) to access Snowflake. When I do DBT run, I don't...
Read more >External browser SSO from connector fails on redirect back to ...
When trying to connect to Snowflake from a client like snowsql, JDBC, Python, etc using externalbrowser authenticator fails with error "SAML ...
Read more >Federated Authentication & SSO Error Codes
Error Code Error Descripti...
390165 SAML_RESPONSE_INVALID_SIGNATURE The SAM...
390179 SAML_RESPONSE_INVALID_INTEGRATION_MISCONFIGURATION The SAM...
Read more >Unauthorized error while connecting Snowsql using Okta SSO ...
The following error is reported while connecting to Snowflake from Snowsql using Okta SSO Native Connection. ... The connection request has been ...
Read more >Why I'm getting below error, Is this user setup issue? 250001 ...
I'm trying to login snowflake using SSO, Authentication was successful but I'm getting below error: 250001 (08001): Failed to connect to DB: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Close the issue. After I got the optional package installed, the problem seemed gone.
pip install "snowflake-connector-python[secure-local-storage, pandas]"
Not sure I can be helpful around how to install that optional package manually on your machine. It looks like it’s the same in v2.2.10, though.