aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

ValidationException: The provided key element does not match the schema

Open donghoon-song opened this issue 3 years ago • 2 comments

Describe the bug

스크린샷 2022-06-03 오후 4 27 57 스크린샷 2022-06-03 오후 4 28 07 Pasted_image_at_22-06-03-16-35

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

Pasted_image_at_22-06-03-16-35

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

donghoon-song avatar Jun 03 '22 09:06 donghoon-song

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 avatar Jun 13 '22 12:06 ajredniwja

@ajredniwja Thank you. Let me provide reproducible code in a few days.

donghoon-song avatar Jun 14 '22 02:06 donghoon-song

@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.

donghoon-song avatar Sep 05 '22 05:09 donghoon-song