Docker running amazon/aws-lambda-nodejs JSON errors

Issue: Running into this error within Docker lambda logs …ERROR Invoke Error {"errorType":"SyntaxError", "errorMessage":"Unexpected end of JSON input","stack": ["SyntaxError: Unexpected end of JSON input"," at JSON.parse (<anonymous>)"," at Runtime.handleOnce (/var/runtime/Runtime.js:67:14)"]} When using a fetch: … await fetch(url, requestOptions) .then(function (response) { if (response.ok) { return response.json(); } return false; }); Called via this simplified request […]

By theMidwest
Published
Categorised as cors, docker, lambda, node.js, webpack Tagged , , , ,

Docker running amazon/aws-lambda-nodejs Invoke errors

Issue: Running into this error within Docker lambda logs …ERROR Invoke Error {"errorType":"SyntaxError", "errorMessage":"Unexpected end of JSON input","stack": ["SyntaxError: Unexpected end of JSON input"," at JSON.parse (<anonymous>)"," at Runtime.handleOnce (/var/runtime/Runtime.js:67:14)"]} When using a fetch: … await fetch(url, requestOptions) .then(function (response) { if (response.ok) { return response.json(); } return false; }); Called via this simplified request […]

By theMidwest
Published
Categorised as cors, docker, lambda, node.js, webpack Tagged , , , ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq