Skip to content
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

DynamoDB Client Throwing Error on New Version #4237

Closed
3 tasks done
gakinson opened this issue Nov 29, 2022 · 3 comments
Closed
3 tasks done

DynamoDB Client Throwing Error on New Version #4237

gakinson opened this issue Nov 29, 2022 · 3 comments
Assignees
Labels
bug This issue is a bug.

Comments

@gakinson
Copy link

Checkboxes for prior research

Describe the bug

Getting the follow error when doing a simple Scan command using the DynamoDB Document client:

TypeError: Cannot read property 'S' of null
    at AttributeValueFilterSensitiveLog (/Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1144:13)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1492:65
    at Array.reduce (<anonymous>)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1490:61
    at Array.map (<anonymous>)
    at ScanOutputFilterSensitiveLog (/Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1490:26)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:16:21

SDK version number

@aws-sdk/client-dynamodb@3.218.0, ...

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v14.18.3

Reproduction Steps

import {DynamoDBClient} from "@aws-sdk/client-dynamodb";
import {DynamoDBDocumentClient, QueryCommand, ScanCommand, UpdateCommand} from "@aws-sdk/lib-dynamodb";

const client = new DynamoDBClient();
const ddbClient = DynamoDBDocumentClient.from(client, {marshallOptions: {removeUndefinedValues: true}});

await ddbClient.send(new ScanCommand({TableName: '<TABLE_NAME>'}))).

Observed Behavior

TypeError: Cannot read property 'S' of null
    at AttributeValueFilterSensitiveLog (/Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1328:13)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1593:149
    at Array.reduce (<anonymous>)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1593:61
    at Array.map (<anonymous>)
    at ScanOutputFilterSensitiveLog (/Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js:1593:26)
    at /Users/geoffreykinson/IdeaProjects/wesponsored-scripts/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:16:21
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Expected Behavior

Successfully execute command

Possible Solution

No response

Additional Information/Context

If I revert the dependencies back to 3.188.0, the above command works.

i tried going back a few version (3.216.0, 3.215.0) and still got the same error. It was not until I went back to something further it worked again.

@gakinson gakinson added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 29, 2022
@adrai
Copy link

adrai commented Nov 29, 2022

probably duplicate of #4222

@RanVaknin RanVaknin removed the needs-triage This issue or PR still needs to be triaged. label Nov 29, 2022
@RanVaknin RanVaknin self-assigned this Nov 29, 2022
@RanVaknin
Copy link
Contributor

Hi @gakinson ,

This issue is related to this initial issue. The team is overwhelmed with some re:Invent related release bugs. Once we can get that issue sorted out this issue will get looked at with first priority.

Since there are 2 other issues open, I'm going to close this in favor of tracking it over there. Feel free to comment on that initial issue to say that youre also impacted.

Apologies for the inconvenience.
Ran~

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants