-
Notifications
You must be signed in to change notification settings - Fork 53
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
Added network retries option #198
base: master
Are you sure you want to change the base?
Conversation
}) | ||
.on('error', reject); | ||
_handleHttpResponse(res, resolve, reject); | ||
}).on('error', (err) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which error cases does this cover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Network-related errors
- Connection errors
- HTTP protocol errors and
- Server errors(status code in the range of 500-599)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point me to the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our APIs handles 500 and 503 errors and responds a JSON. Will this cover those cases as well?
Kudos, SonarCloud Quality Gate passed!
|
Purpose
Added network retries option
Example Usage
Checklist