Feature: check for HTTP 413 (Entity too large) errors (#264)

This commit is contained in:
Luis Uguina
2020-06-21 02:42:20 +10:00
committed by GitHub
parent 57cae65412
commit b4511e7730
3 changed files with 16 additions and 2 deletions

View File

@@ -887,7 +887,12 @@ import lombok.Data;
// no point to retry the request
confirmJobReturnCode = Error.Type.UNKNOWN;
break retryLoop;
case JOB_VALIDATION_IMAGE_TOO_LARGE:
// the client cannot recover from this error (it's server side config) so exit the retry loop
confirmJobReturnCode = Type.IMAGE_TOO_LARGE;
break retryLoop;
default:
// do nothing, try to do a request on the next loop
break;