-
Notifications
You must be signed in to change notification settings - Fork 586
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
lib-dynamodb v3.666.0 throws error on getting database data (possible regression) #6549
Comments
Hi @samuel-pipelaunch - thanks for reaching out. While I look further into investigating this, could you share a minimal reproducible SDK code you have? What was the pervious working version for you before version upgrade? Knowing the previous working version can help us pinpoint the changes introduced in the latest version that might be causing the incompatibility. |
Seeing the same |
It was working on this version: |
It seems that the error you're seeing is likely due to a version mismatch between the To confirm the root cause, you need to check the versions of these two packages in your The potential solution is to ensure that you have a valid combination of versions for these two packages. You can achieve this by setting the version range to be less than or equal to the version you're using for @aws-sdk/lib-dynamodb (in your case, "<=3.666.0"). We have verified and confirmed that the solution provided works on our end, but if issue persists, please share Hope it helps! |
We are seeing this error when having |
We are still seeing this error. Our app is running:
I checked our |
Could it be as simple as lib-dynamodb is missing a dependency on
https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-dynamodb/package.json#L28-L34
|
I had the same and tried to understood: it looks like As @jerizm said, the dependency on If, for some reason, it founds a version of You can check why outdated version of |
Hello everyone, I appreciate your responses. However, I'm unable to reproduce the issue on my end. Could someone provide a reproducible code snippet along with detailed steps? That would be really helpful. Here are the steps I've taken:
code exampleimport { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import { DynamoDBDocumentClient, GetCommand } from "@aws-sdk/lib-dynamodb";
const client = new DynamoDBClient({ region: "us-west-1" });
const docClient = DynamoDBDocumentClient.from(client);
export const main = async () => {
const command = new GetCommand({
TableName: "cities",
Key: {
cityName: "Los Angeles",
},
});
const response = await docClient.send(command);
console.log(response);
return response;
};
main(); response{
'$metadata': {
httpStatusCode: 200,
requestId: 'ABLUVICAU2M2QQOMLGLFO22N47VV4KQNSO5AEMVJF66Q9ASUAAJG',
extendedRequestId: undefined,
cfId: undefined,
attempts: 1,
totalRetryDelay: 0
},
Item: { cityName: 'Los Angeles' }
} "dependencies": {
"@aws-sdk/client-dynamodb": "^3.668.0",
"@aws-sdk/lib-dynamodb": "^3.668.0"
} Any further details you can provide would be greatly appreciated! |
You can install
That being said. It should be fixed after this is merged. #6557 |
@aBurmeseDev it is now solved when updating to "@aws-sdk/lib-dynamodb": "^3.670.0" |
@aBurmeseDev Thanks for the help. The issue is now resolved. |
Thank you very much @aBurmeseDev |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
Was working perfectly before updating to the latest version.
Now throws error each time I want to read a value from a dynamoDB
Regression Issue
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v20
Reproduction Steps
serverless-esbuild": "^1.54.3
const res = await ddbClient.send(new GetCommand(params));
Observed Behavior
Expected Behavior
Do not throw errors
Possible Solution
No response
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: