Node version: 12.16.1
Npm version: 6.13.4
OS and version: macOS Big Sur 11.1
typed-rest-client version: 1.8.1
Issue Description
Inside the httpClient.js, the request was stuck in an infinite loop when response returns with error code (ECONNREFUSED) and matches in the NetworkRetryErrors array.
Should it increment the numTries counter and terminate if it reaches the threshold and/or throw an error? Otherwise, the event could be stuck for a long time until the opposing service comes back online.
Actual behaviour
Process is hung without any response or doesn't end after going beyond the timeout value set.
Steps to reproduce
Start 2 microservices.
Make a request to the other microservice that response back with ECONNREFUSED. (Its a scenario to simulate my problem in my production env)
Environment
Node version: 12.16.1 Npm version: 6.13.4 OS and version: macOS Big Sur 11.1 typed-rest-client version: 1.8.1
Issue Description
Inside the httpClient.js, the request was stuck in an infinite loop when response returns with error code (ECONNREFUSED) and matches in the NetworkRetryErrors array.
Expected behaviour
Should it increment the numTries counter and terminate if it reaches the threshold and/or throw an error? Otherwise, the event could be stuck for a long time until the opposing service comes back online.
Actual behaviour
Process is hung without any response or doesn't end after going beyond the timeout value set.
Steps to reproduce
Logs
Exception thrown within HttpClient.js