Skip to content
Discussion options

You must be logged in to vote

Thanks for the response, @jbelkins

Looking at it again, the message field is nil, so no extra clues there. And the code on the CommonErrors page simply says,

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

That's not much of a clue, unfortunately.

I figured it out, eventually. In my code, I had erroneously given GetItem just one key, the sort key, not really thinking too much about how DynamoDB works, hoping that since I only had three records in the table, the sort key was enough to get a unique match. But I tried it with both partition and sort keys, and it now works. Looking more closely at the API docs 😳, I see this is how things are sup…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ramink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants