-
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
Upgrade snowflake-sdk from 1.6.23 to 1.9.2 - Connection.execute fails with axios.request is not a function
#730
Comments
axios.request is not a function
axios.request is not a function
axios.request is not a function
axios.request is not a function
thank you for submitting this issue; we'll take a look. |
i'm using following script to try and reproduce the issue: # cat pool.js
var snowflake = require('snowflake-sdk');
console.log(`\nNode.js process version is: ${process.version}\n`);
snowflake.configure({ logLevel : 'trace'});
const account = process.env.SFACCOUNT;
const username = process.env.SFUSER;
const password = process.env.SFPASS;
const warehouse = process.env.SFWH;
const application = 'Test-GH-730';
const poolSize = 3;
const pool = snowflake.createPool(
{
account: account,
password: password,
username: username,
warehouse: warehouse,
application: application,
timeout: 30_000,
},
{
evictionRunIntervalMillis: 30_000,
idleTimeoutMillis: 30_000,
max: poolSize,
min: 1,
},
);
pool.use(async (clientConnection) =>
{
const statement = await clientConnection.execute({
sqlText: 'CREATE DATABASE IF NOT EXISTS GH730;',
complete: function (err, stmt, rows)
{
var stream = stmt.streamRows();
stream.on('data', function (row)
{
console.log(row);
});
stream.on('end', function (row)
{
console.log('All rows consumed');
});
}
});
})
; with axios 1.6.0 (by default 1.6.2 is installed)
edit --> in your and looks to be executing correctly to me:
with no error whatsoever.
would it be please possible to send a runnable reproduction which when executed leads to the issue you're seeing? this would be very helpful in debugging. thank you in advance ! edit installed the same modules from your |
I think i got a similar error:
|
Until now, the issue does not reproduce for me yet, but I would really love to take a look at it, so if anyone is able to create a reproducible scenario; please do share - thank you in advance ! |
Not sure if it's related, but after update from
|
tried following scenario as well.
probably something is broken ,but until now i'm unable to reproduce and get to the same issue. But since it is broken for at least for 3 of you guys unfortunately - if any of you happens to have any closer details besides the fact it breaks for you after upgrade, that would be really helpful. |
issue seems to be not generically fitting for all use cases and there has been no reproducible scenario for a long while. i'm now going to mark this issue as closed for now but in case any of you can share a reproduction scenario which leads to this issue, kindly do so and we can investigate further. |
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.9.2
What operating system and processor architecture are you using?
OS: MacOS Ventura 13.5.2
Chip: Apple M1 Pro
What version of NodeJS are you using?
(
node --version
andnpm --version
)v18.17.1
What are the component versions in the environment (
npm list
)?├── @azure/[email protected]
├── @azure/[email protected]
├── @azure/[email protected]
├── @azure/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @envelop/[email protected]
├── @fast-csv/[email protected]
├── @godaddy/[email protected]
├── @graphql-codegen/[email protected]
├── @graphql-codegen/[email protected]
├── @graphql-codegen/[email protected]
├── @graphql-tools/[email protected]
├── @graphql-tools/[email protected]
├── @jest-mock/[email protected]
├── @jest/[email protected]
├── @octokit/[email protected]
├── @sentry/[email protected]
├── @sentry/[email protected]
├── @sentry/[email protected]
├── @supercharge/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @typescript-eslint/[email protected]
├── @typescript-eslint/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
5.Server version:* E.g. 1.90.1
You may get the server version by running a query:
execute
with SQL parametersCREATE DATABASE IF NOT EXISTS
fails with the error below.I expected this to create the db and not fail due to an axios import issue.
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
e.g
Add this to get standard output.
The text was updated successfully, but these errors were encountered: