Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Body needs to be converted to a string if it is not already #1

Open
tdmalone opened this issue Apr 15, 2018 · 1 comment
Open

Body needs to be converted to a string if it is not already #1

tdmalone opened this issue Apr 15, 2018 · 1 comment

Comments

@tdmalone
Copy link
Owner

eg. see tdmalone/coffee-shop-message#2, caused by a JSON object being sent through

@tdmalone
Copy link
Owner Author

tdmalone commented Apr 15, 2018

This can of course be solved downstream by running JSON.stringify() before passing the message through, but as a JSON object is never an accepted value for body by API Gateway, we should ensure here that it doesn't get through. Of course, we just need to make sure that we're only stringify'ing if we have to, as we don't want to do it twice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant