Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

feat: Add retry with backoff to requests #26

Merged
merged 5 commits into from
Dec 4, 2018
Merged

feat: Add retry with backoff to requests #26

merged 5 commits into from
Dec 4, 2018

Conversation

bengourley
Copy link
Contributor

This adds a bit more tolerance to network outages etc. If a 40x status code is recieved from the API it will not retry as this indicates a bad request – so no need to keep sening the same request.

There were no end-to-end tests predating this feature so I added some.

Fixes bugsnag/webpack-bugsnag-plugins#17.

This adds a bit more tolerance to network outages etc. If a 40x status code is recieved from the API
it will not retry as this indicates a bad request – so no need to keep sening the same
request.

There were no end-to-end tests predating this feature so I added some.

Fixes bugsnag/webpack-bugsnag-plugins#17.
Copy link
Contributor

@snmaynard snmaynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some concerns about the added dependency

lib/request.js Outdated Show resolved Hide resolved
@bengourley bengourley merged commit d3e53d7 into master Dec 4, 2018
@bengourley bengourley deleted the retry branch December 4, 2018 17:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants