I would like to force uppy to wait longer than the 30s or so it seems to wait when there is no internet connection. If I turn off my wifi mid multipart upload uppy will give the following error after around 30s:
index.js:56 PREPARING UPLOAD PART
delay.js:3 PUT https://my-bucket.s3.amazonaws.com/c029750f-ba8d-4fdc-bb1e-6c9bac6f054d.mp4?uploadId=TIkjb31kfow4XmBcxJCrfPIp5y.hrQBvMWIWEaNLWwI_bS2_uAFHOqGW6_aiahQANb0.jIg5OazOjP8oIXoZzElfnw3BtO.LTbyJgOtNUkUOWk9Um4X9rxuKHKxWxOFuw24nIGscTcMXQ95dGST_5XcLlw_cUlAsb3A95AjS1dVw6z93KQHIsdSnvkRGGRlM0EcVJm24aFQpIfaRuUvhbQ--&partNumber=7&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQK5FPQTRW6QLUQX6%2F20210703%2Feu-west-2%2Fs3%2Faws4_request&X-Amz-Date=20210703T161754Z&X-Amz-Expires=43200&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBgaCWV1LXdlc3QtMiJHMEUCIQD9%2FLa1iOQQtwLyyUosSfz6qlI0AcubFEtG7NtTWxD3rAIgPy4uKsV9incuO6B1qmlnbZyZYWP4W728hu0Utm5OjAEqwQII8f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgwwMjM0MzI0OTYzNTUiDL7XLuprRZG%2BDm89ZiqVAuznYA8g2%2BEkI5iDlY0ZWZ8x47DThlpzXTjmn2nNgFXGP0pgVw%2BO4xP4rcrXxhcmBND9DwAazDjf%2Ff7btuzJji%2B3ylbJFjcB01KXj1oXvgzPrsSglQhYRLUoe9v9X4YsmprqjSNTd%2FQcwnqn4nswuVRBvtoACx6T61duJZJHTTlJuw2js5GYZM8bqXqeSv0TVumaMl1uWjSLLQ4t9CjuAS8ji2vpoxzIXXcVJWjLVmIy67XI8bnhCIKbAZ4GlrJKNLMvkeIxT88hUl43pAPk0AHqYsp5pi9reETYT5EIyijLQtdxCgRQeEqGkF8Vc1puUM%2BGAITO5w8dhhLVVLQXaJhP%2FRd27ZPlUqh%2B8nMF45jUB7T4QkowopiChwY6mgFJcsScGiSlGs%2Fl1lvifSJ8E80WylT%2Bfey7y1rY0qKuLaWvePcBzNf%2BTWe70M2M2RToOlXeqILrSFt29DjM898m7ylNcKfSL9MbP7s0Lk16RB0RV0mKZ4Zr03zhyaaQvljXKJx2LGh%2BYuNv2XV1cyi41XYpXVzAU4zxH%2BVUpmsgQhYGARCdHGda1J6RVE9Eboh4R7lDGn1pBfRR&X-Amz-Signature=29918bdd1583c4cde6aa45addc6f4d0399d0f0e8970f949dff0d0a3932e4fe7a net::ERR_NAME_NOT_RESOLVED
t._uploadPartBytes @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
t._uploadPart @ delay.js:3
attempt @ delay.js:3
e @ delay.js:3
t._retryable @ delay.js:3
t._uploadPartRetryable @ delay.js:3
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
t._createUpload @ delay.js:3
t.start @ delay.js:3
(anonymous) @ index.js:249
t._call @ RateLimitedQueue.js:1
t.run @ RateLimitedQueue.js:1
(anonymous) @ index.js:247
o.uploadFile @ index.js:166
(anonymous) @ index.js:488
o.upload @ index.js:481
(anonymous) @ index.js:1755
Promise.then (async)
(anonymous) @ index.js:1732
r.runUpload @ index.js:1726
(anonymous) @ index.js:1895
Promise.then (async)
r.upload @ index.js:1875
startUpload @ index.js:49
u @ preact.js:2
index.js:56 PREPARING UPLOAD PART
index.js:57 GET https://.execute-api.eu-west-2.amazonaws.com/xxx/v1/fileupload/prepare-upload-part/TIkjb31kfow4XmBcxJCrfPIp5y.hrQBvMWIWEaNLWwI_bS2_uAFHOqGW6_aiahQANb0.jIg5OazOjP8oIXoZzElfnw3BtO.LTbyJgOtNUkUOWk9Um4X9rxuKHKxWxOFuw24nIGscTcMXQ95dGST_5XcLlw_cUlAsb3A95AjS1dVw6z93KQHIsdSnvkRGGRlM0EcVJm24aFQpIfaRuUvhbQ--?part_number=7&key=c029750f-ba8d-4fdc-bb1e-6c9bac6f054d.mp4 net::ERR_NAME_NOT_RESOLVED
prepareUploadPart @ index.js:57
(anonymous) @ delay.js:3
Promise.then (async)
t._uploadPart @ delay.js:3
attempt @ delay.js:3
e @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
(anonymous) @ delay.js:3
Promise.catch (async)
e @ delay.js:3
t._retryable @ delay.js:3
t._uploadPartRetryable @ delay.js:3
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
t._createUpload @ delay.js:3
t.start @ delay.js:3
(anonymous) @ index.js:249
t._call @ RateLimitedQueue.js:1
t.run @ RateLimitedQueue.js:1
(anonymous) @ index.js:247
o.uploadFile @ index.js:166
(anonymous) @ index.js:488
o.upload @ index.js:481
(anonymous) @ index.js:1755
Promise.then (async)
(anonymous) @ index.js:1732
r.runUpload @ index.js:1726
(anonymous) @ index.js:1895
Promise.then (async)
r.upload @ index.js:1875
startUpload @ index.js:49
u @ preact.js:2
getTimeStamp.js:3 [Uppy] [17:19:18] Failed to upload roxbury.mp4 Failed to fetch
error @ getTimeStamp.js:3
r.log @ index.js:1584
r.showOrLogErrorAndThrow @ index.js:649
(anonymous) @ index.js:1232
(anonymous) @ Translator.js:3
P.e.emit @ Translator.js:3
onError @ index.js:189
t._onError @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
(anonymous) @ delay.js:3
t._uploadParts @ delay.js:3
(anonymous) @ delay.js:3
Promise.then (async)
t._createUpload @ delay.js:3
t.start @ delay.js:3
(anonymous) @ index.js:249
t._call @ RateLimitedQueue.js:1
t.run @ RateLimitedQueue.js:1
(anonymous) @ index.js:247
o.uploadFile @ index.js:166
(anonymous) @ index.js:488
o.upload @ index.js:481
(anonymous) @ index.js:1755
Promise.then (async)
(anonymous) @ index.js:1732
r.runUpload @ index.js:1726
(anonymous) @ index.js:1895
Promise.then (async)
r.upload @ index.js:1875
startUpload @ index.js:49
u @ preact.js:2
getTimeStamp.js:3 [Uppy] [17:19:18] Failed to fetch
error @ getTimeStamp.js:3
r.log @ index.js:1584
r.showOrLogErrorAndThrow @ index.js:649
(anonymous) @ index.js:1897
Promise.catch (async)
r.upload @ index.js:1896
startUpload @ index.js:49
u @ preact.js:2
index.js:329 Uncaught (in promise) Error: Can’t set state for undefined (the file could have been removed)
at e.r.setFileState (index.js:329)
at Function.t (index.js:1209)
at Translator.js:3
at Object.P.e.emit (Translator.js:3)
at index.js:1763
After this it will then render a retry
button but I would prefer for it to continue to try until a connection becomes available.
How can I force uppy to continue to try for an extended period when there is no internet connection detected? There do not seem to be any obvious ways I can see in the documentation on the multipart options to do this.