Skip to content

Commit bb27255

Browse files
authored
Added one case to readme as Troubleshooting section
1 parent adb8512 commit bb27255

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,8 @@ Every contribution is very welcome. Keep these in your mind when you want to mak
129129
3. Check your changes with a Lambda environment. You can use [SAM-CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) to test on your local.
130130
4. Don't forget to update documentation(this readme file) about your changes.
131131

132+
## Troubleshooting
133+
134+
### I'm making a POSY request with JSON by using bodyParser as middleware but `req.body` is always `{}`
135+
136+
Please check your `Content-Type` and `Content-Length` request headers. For JSON requests `Content-Type` should be `application/json` and `Content-Length` should be size(in bytes) of JSON string in body.

0 commit comments

Comments
 (0)