Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29255

SyntaxError: Unexpected end of JSON input at JSON.parse?

$
0
0

Scenario: The API layer and the UI layer are deployed on AWS EC2 Instance (Amazom AMI Linux). The UI is being hosted using nginx on port 80 and the API is deployed using MS Krestel Server on port 5000. I am using nginx proxy setting to redirect any api requests coming from the UI to port 5000 internally.

Problem: For a couple APIs I was getting the following error on Chrome, Edge and Firefox ->net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)To solve that I added chunked_transfer_encoding off; in the nginx.conf.But then I started getting following error:

enter image description here

The API is returning the data but somehow there is some parsing error. I believe it's cause of the bridge between krestel and nginx since the same is working on my Local.

Please help. Thanks


Viewing all articles
Browse latest Browse all 29255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>