Closed theanhhoang closed 2 months ago
Maybe try:
data = DYNAMO_CLIENT.query("my-dynamo-table", Dict(
"KeyConditionExpression" => "#pk = :val",
"ExpressionAttributeNames" => Dict("#pk" => "_pkID"),
"ExpressionAttributeValues" => Dict(":val" => Dict( "S" => "myObject"))
)
)
since it could be the Julia code expects the serialize the json itself. Not sure.
Thanks Eric, that's truly the solution. Will close this issue ticket but I think the documentation needs to be updated to avoid mistake like me.
Hi, I am trying to use the
DynamoDB query
for a while but it keeps returningERROR: AWS.AWSExceptions.AWSException: SerializationException -- Unexpected field type
. Can you please assist with that error?Here is what I have tried with
aws-cli
, which was able to obtain the response:and here is what I am testing in Julia:
and the error looks like this:![Screenshot 2024-05-28 at 10 06 17 AM](https://github.com/JuliaCloud/AWS.jl/assets/25679262/eca52043-73b2-4faf-8c4f-4f0eea681faa)