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've got an SNS topic publishing to a HTTP endpoint, and the response its giving me has header Content-Type: application/json but the body isnt valid JSON.
Currently its difficult to process the request using nodejs express, as the body parsers use that content type to decide how to parse the body, and the bodys json content is formatted a bit weirdly.
The text was updated successfully, but these errors were encountered:
I've got an SNS topic publishing to a HTTP endpoint, and the response its giving me has header
Content-Type: application/json
but the body isnt valid JSON.The AWS documentation states that the header should be
text/plain
: https://docs.aws.amazon.com/sns/latest/dg/sns-message-and-json-formats.htmlChanging this to suit would fix my issue at least:
goaws/app/gosns/gosns.go
Line 642 in bc027e4
Currently its difficult to process the request using nodejs express, as the body parsers use that content type to decide how to parse the body, and the bodys json content is formatted a bit weirdly.
The text was updated successfully, but these errors were encountered: