Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EHOSTUNREACH to NetworkRetryErrors list #372

Closed
adviri opened this issue Jun 27, 2024 · 1 comment
Closed

Add EHOSTUNREACH to NetworkRetryErrors list #372

adviri opened this issue Jun 27, 2024 · 1 comment

Comments

@adviri
Copy link

adviri commented Jun 27, 2024

Hello,

I have noticed that the NetworkRetryErrors list in lib/HttpClient.ts.js does not include EHOSTUNREACH.

const NetworkRetryErrors: string[] = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];

I happened to encounter EHOSTUNREACH errors due to temporary network issues. I believe it would be beneficial to include EHOSTUNREACH in the NetworkRetryErrors list so that requests encountering this error can be retried.

Thank you for your time :)

@DenisRumyantsev
Copy link
Contributor

Done, thanks for the suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants