-
Notifications
You must be signed in to change notification settings - Fork 5
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
Retry does not work when using request body #46
Comments
Plus, the exponential backoff does not seem to work like described in the docs (6, 36, 216, ...), it generates 6, 36, 1296, 1679616 instead |
Will try forking, for now |
Hey @perjo927 sorry for the delay. Will try to have a look at this this week! |
@estrattonbailey Thanks! |
any update on this? @estrattonbailey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @estrattonbailey,
I have encountered a problem when using the
retry
option. It works fine as long as I don't use a request body.I couldn't figure it out, I debugged and it failed silently in
handleRetry
. Then I cloned the repo and wrapped a code block in a try/catch:Now fetch throws the following error:
Failed to execute 'fetch' on 'Window': Cannot construct a Request with a Request object that has already been used
It appears to happen only when a body is attached to the request, without a request body it works fine.
This answer helped me solve the problem: https://stackoverflow.com/a/55980308/3504096
If I clone the request here: https://github.com/truework/gretchen/blob/master/index.ts#L108-L111
... it works, like so:
I wanted to submit a pull request but was not authorized to do so.
The text was updated successfully, but these errors were encountered: