-
Notifications
You must be signed in to change notification settings - Fork 239
Description
Hi,
I'm having an issue with Deno 1.18.2 and oak 10.2.1 related with #430 where I'm sending a POST request with body set to none
using Postman and I get an Internal Server Error with the following message:
[uncaught application error]: SyntaxError - Unexpected end of JSON input
request: { url: "http://localhost:8000/v1/products/", method: "POST", hasBody: true }
Also, in this case as you can see .hasBody
is set to true
. I know since #430 was resolved, this means the request might have a body, but I'm unable to check the inside of the body value as when trying to log it on the console it throws the aforementioned error. I'm trying this in order to check the content of value to return a 404 response in case is undefined
.
Also, when trying this with curl
(curl -X POST --url http://localhost:8000/v1/products -H Content-Type:\ application/json
) instead of Postman instead of the error above the following gets thrown:
[uncaught application error]: RangeError - Body exceeds a limit of 10485760.
request: { url: "http://localhost:8000/v1/products", method: "POST", hasBody: true }
I'm not 100% sure how to proceed from here, but I think something odd is going on here.
Thanks.