Retries
We added retries on network failures with noisy exponential backoff. By default got
will try five times, before returning error.
Retries only applies to network errors (because network is not reliable). Requests with server errors, like 50x
status codes, will not be retried.
You can disable them by passing 0
to retries
option.
Update
$ npm install --save got@5
Highlights
- 0109725 Reject promise on internal exception
- df26918 Catch callbacks in stream mode
- f9f2807 Reduce size for browserify
- 066e612 Remove
response
event onerror
(in stream mode) (#110) - 62ff082 Catch
auth
option passed inurl
string (#106) - 6c59ce8 Add retries on network errors (#98)
- 9ffbbdf Deferred
response
event - 013a2b5