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:
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