question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent problem with DB connection while using Snowflake and SSO

See original GitHub issue

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 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ddppicommented, Sep 2, 2021

Close the issue. After I got the optional package installed, the problem seemed gone. pip install "snowflake-connector-python[secure-local-storage, pandas]"

0reactions
jtcohen6commented, Sep 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found