Fix: handle http500 response from shepherd

This commit is contained in:
Laurent Clouet
2022-07-17 11:40:01 +02:00
parent 6ba42a3e29
commit d359397076
2 changed files with 9 additions and 1 deletions

View File

@@ -1090,7 +1090,12 @@ import okhttp3.HttpUrl;
// the client cannot recover from this error (it's server side config) so exit the retry loop
confirmJobReturnCode = Type.IMAGE_TOO_LARGE;
break retryLoop;
case ERROR_BAD_RESPONSE:
// set the error and retry on next loop
confirmJobReturnCode = Type.ERROR_BAD_UPLOAD_RESPONSE;
break;
default:
// do nothing, try to do a request on the next loop
break;