aws-sdk-js
aws-sdk-js copied to clipboard
ValidationException: The provided key element does not match the schema
Describe the bug

My table have the partition key "name". and I think there is no problem in my request format but the error occurs.
Expected Behavior
API should return the document without the error.
Current Behavior

Reproduction Steps
Create a dynamodb table with string partition key and call get item api.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
2.1148.0
Environment details (OS name and version, etc.)
macos
Hey @donghoon-song thanks for opening this issue, can you please share your minimal reproducible code? Possibly text version. I am able to use the API fine using the example found here.
@ajredniwja Thank you. Let me provide reproducible code in a few days.
@ajredniwja I'm so sorry for late reply. But I found that the partition key of the table is "name" and the range key of the table is the "createdAt" so that I need to provide both keys to get item.