You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to send an SQS message, where the payload is JSON data and it's failing. The specific error "AWS query cannot have multiple values for same key" (which appears to be from here).
It is using the Uri library to encode the message into a query string, which has some issues when encoding things for AWS (see mirage/ocaml-uri#65). What it looks like is happening here is that it's treating the commas as the query key having multiple values. That causes the "AWS query cannot have multiple values for the same key" error and also causes the JSON document to become invalid.
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue @senior!
It looks like that is a longstanding issue with the Uri library that needs to be fixed upstream, unfortunately I hadn't hit this earlier.
I'm attempting to send an SQS message, where the payload is JSON data and it's failing. The specific error "AWS query cannot have multiple values for same key" (which appears to be from here).
With an invocation like
Where
message
is a JSON document in a string. To reproduce the issue, any JSON map with more than one keypair would work, so something like:Doing some debugging, it looks like this code is where the request is getting broken:
It is using the Uri library to encode the message into a query string, which has some issues when encoding things for AWS (see mirage/ocaml-uri#65). What it looks like is happening here is that it's treating the commas as the query key having multiple values. That causes the "AWS query cannot have multiple values for the same key" error and also causes the JSON document to become invalid.
The text was updated successfully, but these errors were encountered: