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 d257b9bCopy full SHA for d257b9b
lib/upload.js
@@ -615,6 +615,11 @@ class BaseUpload {
615
if (status === 423) {
616
this._emitHttpError(req, res, 'tus: upload is currently locked; retry later')
617
return
618
+ } else if (inStatusCategory(status, 500)) {
619
+ // Run retry logic if the server has an error, e.g. 502 Bad Gateway when
620
+ // proxied server is temporarily down. See issue #579.
621
+ this._emitHttpError(req, res, 'tus: resuming upload resulted in HTTP 500 category error')
622
+ return
623
}
624
625
if (inStatusCategory(status, 400)) {
0 commit comments