0

I'm running nestJS server (gateway server) and configured http-proxy-middleware The http-proxy-middleware handle all request to external server (mock server). If I call from postman to gateway server, the call is proxied to mock server and return response. But when I call from IOS emulator to gateway server, the call is hang for long time, and I get error:

socket hang up
at connResetException (node:internal/errors:691:14)
at Socket.socketOnEnd (node:_http_client:471:23)
at Socket.emit (node:events:402:35)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'ECONNRESET'

I can see in the gateway server that the URL to mock server is correct, but do not get response.

Also to note that I have company proxy, so I configured the gateway to use agent.

Any advice?

Israel
  • 445
  • 2
  • 5
  • 15

0 Answers0