SNOW-1802627: deprecated region property in connection config must still be specified. #960
Labels
invalid
This doesn't seem right
status-triage_done
Initial triage done, will be further handled by the driver team
If you need urgent assistance then file a case with Snowflake Support.
Otherwise continue here.
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of NodeJS driver are you using?
1.15.0
What operating system and processor architecture are you using?
windows
What version of NodeJS are you using?
(
node --version
andnpm --version
)16.20.2
8.19.4
What are the component versions in the environment (
npm list
)?+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program would be the most helpful.
I configured a connection as such:
let connection = snowflake.createConnection({
account: "{my_snowflake_account}",
host: "{account}.{aws_region}.snowflakecomputing.com",
warehouse: "{warehouse_name",
role: "{role}",
username: userName,
password: password,
authenticator:
"{okta_authenticator_url}",
database: "{database}",
schema: "{schema}",
});
What did you expect to see?
What should have happened and what happened instead?
I should have made a connection to snowflake
Can you collect debug logs?
I did collect logs. The relevant error was:
{"level":"INFO","message":"[9:38:42.241 AM]: Connection[id: 9fcb8b52-0525-4fc0-82f5-ebfe4e8bc1cf] - failed to connect async after 939.9255000054836 milliseconds.Failed during authentication. Error: AxiosError: Request failed with status code 404\n at settle (C:\src\PipelineTasks\node_modules\axios\dist\node\axios.cjs:2019:12)\n at IncomingMessage.handleStreamEnd (C:\src\PipelineTasks\node_modules\axios\dist\node\axios.cjs:3135:11)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1358"}
{"level":"ERROR","message":"[9:38:42.242 AM]: Connection[id: 9fcb8b52-0525-4fc0-82f5-ebfe4e8bc1cf] - failed during authentication. Error: AxiosError: Request failed with status code 404\n at settle (C:\src\PipelineTasks\node_modules\axios\dist\node\axios.cjs:2019:12)\n at IncomingMessage.handleStreamEnd (C:\src\PipelineTasks\node_modules\axios\dist\node\axios.cjs:3135:11)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1358:12)\n at processTicksAndRejections (node:internal/process/"}
After additional debugging, I was able to determine that the endpoint that axios was trying to connect to was the host string with the region removed. Once I specified the region property (deprecated) on the connection config then it worked.
information.
The text was updated successfully, but these errors were encountered: