Open meziantou opened 4 years ago
Thanks @meziantou, adding some context to this - it should be implemented in the js-client
:
https://github.com/netlify/js-client/blob/960089a289288233bd2a17fcbd8ab4730ca49135/src/deploy/index.js#L101
or be a part of https://github.com/netlify/js-client/issues/157
The links seems specific to the deploy command. I think this behavior should be implemented for any http calls as long as it is a transient error.
think this behavior should be implemented for any http calls as long as it is a transient error.
Do you mind updating the title of the issue to reflect that?
Is your feature request related to a problem? Please describe.
When deploying a site using the CLI (
netlify deploy
), I got the following error:Describe the solution you'd like
I think the client should retry the call when this looks like a transient error, and actually raise an error only after a few attempts.
Describe alternatives you've considered
Handling the exit code and retry manually. However, this would re-execute the previous steps (hashing + uploading), so not great.
Can you submit a pull request?
No.