-
Notifications
You must be signed in to change notification settings - Fork 144
Fix Util.constructHostname bug with us-west-2 region #828
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
base: master
Are you sure you want to change the base?
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
hi - per the Snowflake documentation for account identifiers, the correct notation for an account in us-west-2 is:
as a mitigation, could you please try |
|
Yes, using just "abc123" fixes it, but we have a multi-tenant product and some customers had previously entered "abc123.us-west-2" and it worked fine in version 1.8.0. We updated the SDK to the latest 1.10.1 and this broke our customers dashboards. And worse, it didn't just fail to connect, it threw a syntax error (because of a typo in the code), which happened outside of our try/catch and crashed the entire Node server. This PR doesn't introduce any new logic. It just fixes the typo in the existing code and adds unit test coverage to the function. |
d92e25c to
b095a8b
Compare
|
Hi @jdorn Thank you for commit with implementation to fix the problem. I've run a tests and one test fails, can you verify and fix it.
|
|
Thanks for this fix @jdorn , when are you planning to release it? |
b095a8b to
e9950b5
Compare
Description
There is a bug in the
Util.constructHostnamemethod, specifically when the regionus-west-2is used. This was a breaking change in either 1.9.x or 1.10.x (not sure which). It worked fine in version 1.8.0.To reproduce:
Throws an error:
Now, it works as expected.
Checklist
npm run lint:check -- CHANGED_FILESand fix problems in changed code)npm run test:unitandnpm run test:integration)