microsoft / typed-rest-client

Node Rest and Http Clients with typings for use with TypeScript
Other
675 stars 118 forks source link

Added retry handling when we have a network Error #222

Closed mastrzyz closed 4 years ago

mastrzyz commented 4 years ago

On any http/https library request error we reject the promise in requestRaw.

There might be a TCP network error which has occurred which we will want to retry.

I have selected the following errors to be retryable : 'ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'

mastrzyz commented 4 years ago

Those failed UT's , I'm also getting them on Master, is there any known issue?