-
Notifications
You must be signed in to change notification settings - Fork 597
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
"Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly" Error on AWS Lambda #6855
Comments
Hi @yixiangding - thanks for reporting this issue. It looks like this was due to the recent change in S3 default integrity protections. Could you please upgrade to |
It's unfortunate that this recent change in S3 behavior will necessitate immediate Production patches for certain use-cases. If there is an S3-reading application that was unluckily built with any of the bad S3 Client versions, it would be running okay in Production until the S3 bucket receives new objects with the integrity protections. The S3-reading application suddenly breaks. |
Thanks for the quick facts guys! That explains a lot of puzzles we've seen today... I'll try 3.735.0. Meanwhile @aBurmeseDev do you have an approximate range of the SDK versions that are considered "Bad versions", so that from our side, at least we can prevent this issue from spreading to other services we have? |
We don't have a full list, but the version that you're using which encountered this error should be showing a deprecation message during installation, emitted from the package |
Tripped over this today with luckily, a staging deploy, and not in production. Same thing as author, installed I can confirm locking deps to
|
Thanks all for reporting and apologies for any inconveniences caused. As previously mentioned, this should no longer be an issue starting |
We are operating two AWS Lambda services, both using the same version of Node.js: 16.x and @aws-sdk/client-s3: ^3.329.0
For reference, the AWS Lambda that encountered the error is now functioning correctly after installing @aws-sdk/client-s3 version 3.735.0. Could passing the VersionId parameter in GetObjectCommandInput of @aws-sdk/client-s3 be related to the issue? |
Checkboxes for prior research
Describe the bug
Hello AWS team,
We were experiencing a production incidence earlier today caused by an error
"Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly."
thrown from our code running AWS SDK on Lambda Node.js 18.x.What's strange is, it only affects around 50% of our user base in the production. Also, it's only reproducible on 1 alias out of total 3 aliases (prod alias out of dev, staging, and prod), which led me to think this could be related to the Lambda underlying dependency management.
Among the 2 Lambda functions, one is remedied by simply
npm i @aws-sdk/crc64-nvme-crt
and redeploy. However, the same solution along with addingrequire("@aws-sdk/crc64-nvme-crt")
did not work for the other Lambda and we had to take the service down.Regression Issue
SDK version number
"@aws-sdk/client-dynamodb": "^3.449.0", "@aws-sdk/client-kms": "^3.445.0", "@aws-sdk/client-lambda": "^3.418.0", "@aws-sdk/client-s3": "^3.449.0", "@aws-sdk/client-sns": "^3.449.0", "@aws-sdk/crc64-nvme-crt": "^3.735.0", "@aws-sdk/signature-v4-crt": "^3.734.0", "@aws-sdk/util-dynamodb": "^3.449.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
Lambda Node.js 18.x
Reproduction Steps
Unfortunately still unknown. There is no code change for 2 weeks and suddenly started today.
Observed Behavior
Expected Behavior
No error
Possible Solution
Came across this issue, wondering if this could be related? #6822 (comment)?
Additional Information/Context
Any suggestions will be appreciated
The text was updated successfully, but these errors were encountered: