Skip to content

Retry when timing-out question #1614

Answered by szmarczak
patryk-smc asked this question in Q&A
Discussion options

You must be logged in to vote

Delays between retries counts with function 1000 * Math.pow(2, retry - 1) + Math.random() * 100, where retry is attempt number (starts from 1).

https://github.com/sindresorhus/got#retry

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@szmarczak
Comment options

@patryk-smc
Comment options

@szmarczak
Comment options

@szmarczak
Comment options

@zeing
Comment options

Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1611 on February 17, 2021 11:19.