-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-565611: Requests to Snowflake fail using https over HTTP proxy #282
Comments
hi folks first of all thank you for reporting this issue ! second, massive apologies @monti-python that your issue #159 was closed ; due to an error it happened to a ton of other issues well, but those were reopened. not sure why yours wasnt :( anyways. tested with your code from issue #159 , using the latest |
Hi @sfc-gh-dszmolka, Never mind, thanks for having a look at it! At the moment I'm not actively using the nodejs connector so no longer facing that problem... however it seems this is still an issue with In any case feel free to close #160 if this is no longer needed |
@sfc-gh-dszmolka @sfc-gh-jfan I'm reopening this issue because it's still a problem. I discovered this when working with a customer and found that the connectAsync() call was behaving differently. I was using snowflake-sdk version 1.8.0. In my case, I confirmed the behavior by using authenticator='EXTERNALBROWSER' and I noticed that the first request to Snowflake to get the SSO URL never went through the proxy server. I tried the inverse by pointing to a bogus proxy server so I would expect that all connections would fail. My connection to Snowflake still went through, and the browser opened up, but everything else after that point fails with a timeout because the proxy server wasn't listening to requests. |
i think this was fixed with #659, released in version 1.9.1 |
Please answer these questions before submitting your issue. Thanks!
What version of NodeJS are you using (
node --version
andnpm --version
)?npm: '7.24.2',
node: '16.8.0',
What operating system and processor architecture are you using?
macOS 12.2.1 (21D62) x86_64 Darwin 21.3.0
What are the component versions in the environment (
npm list
)?snowflake-sdk 1.6.7
What did you do?
Attempt to connect to Snowflake using both pooling and one-use connection methods with proxy_host, proxy_port, proxy_protocol set
What did you expect to see?
A connection to Snowflake completes sucessfully allowing requests to be made
What did you see instead?
repeated over and over again.
This is a known bug with Axios (axios/axios#3384) that has popped up for us repeatedly, the solution is to use a custom https.Agent() - a configuration variable allowing passing one here should do the trick.
I noticed there was a problem with proxies on v1.6.8 as reported in another issue, but downgrading to 1.6.7 also returned the same end result.
The text was updated successfully, but these errors were encountered: