-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
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 adding require("@aws-sdk/crc64-nvme-crt")
did not work for the other Lambda and we had to take the service down.
Regression Issue
- Select this option if this issue appears to be a regression.
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
Error: Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly.
You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";].
For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt
at selectChecksumAlgorithmFunction (/var/task/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:209:15)
at validateChecksumFromResponse (/var/task/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:411:35)
at /var/task/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:466:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:174:20
at async /var/task/node_modules/@smithy/middleware-serde/dist-cjs/index.js:33:24
at async /var/task/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:483:18
at async /var/task/node_modules/@smithy/middleware-retry/dist-cjs/index.js:321:38
at async /var/task/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:109:22
at async /var/task/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:136:14
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