We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00cf4b commit b4e3693Copy full SHA for b4e3693
lib/upload.js
@@ -616,6 +616,14 @@ class BaseUpload {
616
this._emitHttpError(req, res, 'tus: upload is currently locked; retry later')
617
return
618
}
619
+ if (inStatusCategory(status, 500)) {
620
+ // Run retry logic if the server has an error, e.g. 502 Bad Gateway when
621
+ // proxied server is temporarily down. See issue #579.
622
+ // Since we want to retry, do not clear `this.url` and do not
623
+ // create a new upload.
624
+ this._emitHttpError(req, res, 'tus: resuming upload resulted in HTTP 500 category error')
625
+ return
626
+ }
627
628
if (inStatusCategory(status, 400)) {
629
// Remove stored fingerprint and corresponding endpoint,
0 commit comments