-
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-1031704: The package is using an old version of @google-cloud/storage. #759
Comments
hi - thanks for submitting this issue ! can you please provide some details (like steps you execute) to get to this issue ? issuing |
Hi @sfc-gh-dszmolka
import { Options as PoolOptions } from 'generic-pool'
import * as snowflake from 'snowflake-sdk'
const connectionOptions: snowflake.ConnectionOptions = {
account: process.env.SNOWFLAKE_ACCOUNT!,
database: process.env.SNOWFLAKE_DB,
schema: process.env.SNOWFLAKE_SCHEMA,
username: process.env.SNOWFLAKE_USERNAME,
password: process.env.SNOWFLAKE_PASSWORD,
warehouse: process.env.SNOWFLAKE_WAREHOUSE,
}
const poolOptions: PoolOptions = {
max: 10,
min: 2,
}
export const connectionPool = snowflake.createPool(
connectionOptions,
poolOptions,
)
npm run build You shall see the mentioned warnings in the console directly. On another note, the npm package for @google-cloud/storage is currently at version 7.7.0 https://www.npmjs.com/package/@google-cloud/storage It is a major version upgrade and I think the package should also upgrade the deps accordingly. |
thank you - probably we'll need to bump Currently, I'm not able to see the issue following your steps
So i'm probably missing something, wondering what that could be. Appreciate the pointers ! |
Additional steps that might help us understand the error I am seeing:
... Error should appear in the console. |
okay, so this requires a little bit more setup to mimic your specific environment :) for which, do you think it would be possible taking one of the two paths:
OR
|
Hi @sfc-gh-dszmolka. I'll try to share the repro soon. |
Hi @sfc-gh-dszmolka. UpdateTemporary Fix: Manually install retry-request and request packages.
|
Hi @sfc-gh-dszmolka. Please find the minimal repro here https://github.com/jainmohit2001/snowflake-google-cloud-storage-issue UpdateThe issue seems to be resolved when using the bumped up version of google cloud storage from https://github.com/snowflakedb/snowflake-connector-nodejs/tree/test-bump-gcp-storage-to-7. I have created another branch for the same: https://github.com/jainmohit2001/snowflake-google-cloud-storage-issue/tree/bump-google-cloud-storage-to-7 |
this is fantastic, thank you so much @jainmohit2001 ! issue can be very nicely reproduced using your repro, its clearly visible. also happy to hear the fix branch helped you to tackle the issue, so I think it can use used as a workaround until we fix the issue properly. will keep this thread posted |
PR #760 which bumps |
fix released with snowflake-sdk 1.10.0, closing this issue |
Hi @sfc-gh-dszmolka. Thanks for the release. But I am seeing these messages in the console. Can you help me understand them and what they mean? If possible please share a link to the document where I can read more about this. Thanks in advance!
|
hi @jainmohit2001 happy to hear the error is gone for you now, thank you for the feedback! The INFO level messages you're referring are unrelated to the fix and part of the Easy Logging feature (#758 , #770 , #779 ) which will help with easier/unified setting logging across multiple Snowflake drivers. We will document it for every driver once it is fully released. |
Thanks for the info! I'll ignore them for now. I'll wait for the documentation first. |
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?
[email protected]
What operating system and processor architecture are you using?
WSL2 on Windows 10
What version of NodeJS are you using?
(
node --version
andnpm --version
)v20.10.0
What are the component versions in the environment (
npm list
)?5.Server version:* E.g. 1.90.1
Using snowflake-sdk with Next.js.
No error while running
npm run build
.I got the following error instead
The text was updated successfully, but these errors were encountered: