- Newest
- Most votes
- Most comments
Hello.
Does this mean that the result of printing the contents of "result" is an empty array?
Can you confirm that "result" contains the scan result?
By the way, are the values specified for "image_id" and "tableName" correct?
Also, I don't think it's very relevant, but since "AttributesToGet" is an old method, I think it would be better to use ".withProjectionExpression".
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ScanJavaDocumentAPI.html
Use comments for asking questions, not answers.
I haven't had the chance to print the result in the file. However, this "result" is converted into a list of strings and sent as an API response to a website, and over there, the list of strings (result) is empty. So, I'm thinking that the problem could be this function that I posted above. The API response part is fine, because if I create a random array with values and send it as an API response, that array is rendered fine on the website.
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 24 days ago
- AWS OFFICIALUpdated 2 years ago
Can you share a single item from your table?
A single item from the table: {"jeo_1", "feature_exec","aut-rf", "labautomate"}, image_id being first (partition key), branch being 2nd, tag being 3rd, repo being 4th. No sort key.
DynamoDB is not schema based, can you share the item as you view it in the DynamoDB Web Console, which contains key-value pairs in JSON output?
I figured out my issue but thank you. It was due to a lack of permissions to do the scan operation, I got this fixed. Thanks again.