uppy
uppy copied to clipboard
shouldRetry in the XHR plugin not called when using the companion
Initial checklist
- [x] I understand this is a bug report and questions should be posted in the Community Forum
- [x] I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
To reproduce, have a XHR server that responds with a 403 for example. Upload using OneDrive via a stand alone companion. The companion keeps retrying, and in the client the shouldRetry function is not called.
Expected behavior
When the companion fails to upload, the shouldRetry function should be called
Actual behavior
The companion keeps retrying 10 times with exponential backoff, resulting in the client waiting 20 minutes for the upload to fail.
#3277 could be related