uppy icon indicating copy to clipboard operation
uppy copied to clipboard

Failed request does not retry even retryDelays is set

Open Lewis-Teoh opened this issue 8 months ago • 0 comments

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

After my access token has expired, the refresh token endpoint is triggered and request for new access token to set on the cookies.

Image

This is happening on TUS upload ReactJS plugin.

Version of plugin

"@uppy/tus": "^3.2.0" "@uppy/progress-bar": "^3.0.2" "@uppy/react": "^3.1.3" "@uppy/core": "^3.3.1" "@uppy/dashboard": "^3.5.0" "@uppy/drag-drop": "^3.0.2"

My config set on TUS instance

 ```ts const uppy = new Uppy({ debug: true, autoProceed: true, restrictions: { maxNumberOfFiles: 1, allowedFileTypes: ['.zip'], maxFileSize: maxFileSizeMb * 1024 * 1024, minFileSize: 22, }, locale: { strings: { dropHereOr: 'Select a ZIP file to upload', } }, }).use(Tus, { endpoint: '/api/files/', chunkSize: 5 * 1024 * 1024, limit: 10, allowedMetaFields: null, storeFingerprintForResuming: false, removeFingerprintOnSuccess: true, retryDelays: [1000, 3000, 5000, 10000], async onAfterResponse(req, res) { if (req.getMethod() === 'PATCH') { setTusFileId(req.getURL().split('/').pop()); } }, }) .on('upload-error', async (file, err, response) => { // handle error }); ``` 

Expected behavior

Expected behavior should be retry the failed request and continue the upload.

Actual behavior

Chunk failed request does not retry.

Lewis-Teoh avatar Apr 17 '25 10:04 Lewis-Teoh