Truncated Response from Nginx server - json

I have a .net WebApi service which is hosted on IIS server, it returns JSON response. when i hit the .net service via postman i get proper complete data as expected.
When i call the same service via Kong Api Gateway (Configured on linux machine with Nginx) from postman, i get truncated JSON response from postman and error calling from c# code.
Received an unexpected EOF or 0 bytes from the transport stream.
Response from postman as below
Can someone please provide me some pointers to proceed with.

Related

is there any easy way to check binary format of http2 request and response payload

I am trying to study how the http2.0 request and response are encoded in binary. Postman doesn't support http2.0 I have tried to use curl --http2 to send a request and capture. But it is not working as http request package cannot be captured if there is no connection established. So I have to create an http2 server using python but it still failed for some reason.
Is there anyway to quickly view different http2 request packages in tools such as Wireshark so that I can view how it is encoded?
Note: It will be better that the request payload contains json payload or image payload. It will also be better if I can set up an easy RESTful http2 server with get and post method. It will be even better if a http2 request can be simulated directly in local machine or there is any public REST server with public documentation using http2 protocol.

POSTMAN client send correct JSON response but the Chrome browser receives HTML

This sounds very absurd but I opened up an old React project of mine and the view does not render. Upon inspection, I found it is receiving a HTML response from the Flask server. However, I am sending valid JSON response to the frontend. This is evident from the POSTMAN client too which throws a JSON response.
So to summarise, Postman Client is receiving expected JSON response from Flask server BUT the Chrome browser is not ! How /Why is this happening ?
Attaching the screenshot below
The server and client are running on different ports. The Postman requests are sent to the port 5000 and any endpoint is relative to localhost:5000 . Hence the response on Postman is as expected. However, for the React frontend to redirect its calls to the backend running on port 5000 , we need a way to tell the frontend to do so since endpoints are relative to the address on which they are running. Hence, an endpoint /questions for the server running on 5000 means localhost:5000/questions but for the frontend means localhost:3000/questions . This connection is provided by setting proxy on the package.json of your project. The value of the proxy would be the server address .

Request from BOTO failing after making request from AWS CPP sdk

my application is making request to AWS dynamodb using AWS CPP Sdk, and after that other request is sent from BOTO to dynamodb, but it fails with below error:
ssl.SSLError: _ssl.c:319: Invalid SSL protocol variant specified.
how can i resolve it.
Appreciate the help

RStudio with node reverse proxy not working

If I use nginx as the reverse proxy for RStudio, it works great following the instructions on https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy?mobile_site=true
However if I write my proxy using node http proxy, I get an error with "code 6 Invalid json-rpc request".
I am using express and http-proxy. Users with similar issues claim that node middleware modifies the JSON request.

wcf restful service with my windows app

We have used WCF restful service end point for Windows phone 8 App, Using HTTP request its running but sometime it throws error by showing "REMOTE SERVER RETURNED ERROR:NOT FOUND". And this error is coming very commonly with "https:" with only "http:" also this error coming but not frequently