Skip to main content

Job.Error.Code enum

sasha.partnerapi.v1.Job.Error.Code · sasha/partner-api/v1/job.proto:65

The reason a job failed.

0CODE_UNSPECIFIEDUnused. Default unspecified value when the field is not set. Proto3 requires first enum to be 0.
1CODE_INTERNALAn internal error occurred while processing the job.
2CODE_IMAGE_ALREADY_PROTECTEDThe input image for the embed job is already protected with SASHA Signature. Returned for image jobs.
3CODE_IMAGE_LOAD_FAILEDThe input image is not a valid image. Returned for image jobs. This can happen if the input image is not a valid image e.g. corrupted or invalid format.
4CODE_IMAGE_TOO_LARGEThe input image is too large. Returned for image jobs. This can happen if the input image is too large to process.
5CODE_IMAGE_TOO_SMALLThe input image is too small. Returned for image jobs. This can happen if the input image is too small to process.
6CODE_MEDIA_LOAD_FAILEDThe input media could not be loaded. Returned for video jobs; image jobs return CODE_IMAGE_LOAD_FAILED. This can happen if the URL does not serve the media, the container is corrupted, or the origin does not support HTTP range requests.
7CODE_MEDIA_TOO_LARGEThe input media is too large. Returned for video jobs; image jobs return CODE_IMAGE_TOO_LARGE. The limit applies to the file size in bytes.
8CODE_MEDIA_TOO_LONGThe input media is too long. Returned for video jobs whose duration, or duration multiplied by bitrate, exceeds the limit.
9CODE_UNSUPPORTED_MEDIA_FORMATThe input media is in a format the job does not support, e.g. a codec or container other than the documented ones.

Value notes​

CODE_INTERNAL

An internal error occurred while processing the job.

This is a generic error code that should be used for errors that are not covered by other error codes.

Referenced by​