Skip to main content

EncordException Objects

Base class for all exceptions.

InitialisationError Objects

Exception thrown when API key fails to initialize.

AuthenticationError Objects

Exception thrown when API key fails authentication.

AuthorisationError Objects

Exception thrown when access is unauthorized. (E.g. access to a data asset or method).

ResourceNotFoundError Objects

Exception thrown when a requested resource is not found. (E.g. label, data asset).

TimeOutError Objects

Exception thrown when a request times out.

RequestException Objects

Ambiguous exception while handling request.

RateLimitExceededError Objects

Exception raised when requests exceed the Encord API rate limit.

PayloadTooLargeError Objects

Exception raised when request payload exceeds the maximum allowed size.

UnknownException Objects

Unknown error.

ServiceUnavailableError Objects

Exception raised when the Encord platform cannot be reached or is temporarily unavailable. Raised for the gateway / availability statuses (HTTP 502, 503 and 504) that the infrastructure in front of the API answers with while the service is down, restarting or overloaded. These are transient: retrying later is the expected remedy.

InvalidDateFormatError Objects

Invalid date format error

MethodNotAllowedError Objects

Exception thrown when HTTP method is not allowed.

OperationNotAllowed Objects

Exception thrown when a read/write operation is not allowed. The API key blocks the operation.

AnswerDictionaryError Objects

Exception thrown when answer dictionaries are incomplete. Occurs when an object or classification is missing.

CorruptedLabelError Objects

Exception thrown when a label is corrupted. (E.g. the frame labels have more frames than the video).

FileTypeNotSupportedError Objects

Exception thrown when a file type is not supported. Supported file types are: image/jpeg, image/png, video/webm, video/mp4.

FileSizeNotSupportedError Objects

Exception thrown when the combined size of the input files is larger than the supported limit.

FeatureDoesNotExistError Objects

If a feature uid does not exist in a given project ontology.

ModelWeightsInconsistentError Objects

Exception thrown when an attempted model training iteration has a different type of weights than what is recorded (i.e. if type of model_hash (uid) is faster_rcnn, but is attempted trained with different model weights).

ModelFeaturesInconsistentError Objects

If a feature type is different than what is supported by the model (e.g. if creating a classification model using a bounding box).

UploadOperationNotSupportedError Objects

Exception thrown when trying to upload a video/image group to non-Encord storage dataset

DetectionRangeInvalidError Objects

Exception thrown when a detection range is invalid. (E.g. negative or higher than num frames in video).

InvalidAlgorithmError Objects

Exception thrown when invalid labeling algorithm name is sent.

ResourceExistsError Objects

Exception thrown when trying to re-create a resource. Avoids overriding existing work.

DuplicateSshKeyError Objects

Exception thrown when using an SSH key that was added twice to the platform.

SshKeyNotFound Objects

Exception thrown when using an SSH key that was not added to the platform.

InvalidArgumentsError Objects

Exception thrown when the arguments are invalid.

GenericServerError Objects

The server has reported an error which is not recognized by this SDK version. Try upgrading the SDK version to see the precise error that is reported.

CloudUploadError Objects

The upload to the cloud was not successful

MultiLabelLimitError Objects

Too many labels were requested

LabelRowError Objects

An error thrown when the construction of a LabelRow class is invalid.

DatasetError Objects

An error thrown when a Dataset is used in an invalid state.

OntologyError Objects

An error thrown when using the ontology class with an error.

WrongProjectTypeError Objects

An error thrown when project type does not match the operation E.g. when Workflow-specific operations are attempted on a non-Workflow project

BundledMoveWorkflowTasksPayloadError Objects

An error thrown when an invalid item is added to the bundle to move workflow tasks

ClientMetadataPatchTimeoutError Objects

The wait for client metadata patch jobs ended before all of them finished. The SDK stopped waiting; it did not cancel the jobs, which may still finish. pending_job_uuids are the jobs that had not finished; check them with get_client_metadata_patch_job(). failures are the patches that could not be confirmed as applied by the jobs that had finished. started are all the jobs waited for, with the items each one patches.

ClientMetadataPatchWaitError Objects

The wait for client metadata patch jobs stopped on an error before all of them were checked. The SDK stopped waiting; it did not cancel the jobs, which may still finish. pending_job_uuids are the jobs whose result was not received; check them with get_client_metadata_patch_job(). failures are the patches that could not be confirmed as applied by the jobs that had finished. started are all the jobs waited for, with the items each one patches. The error that stopped the wait is the cause (__cause__).

ClientMetadataPatchPartiallyStartedError Objects

Starting the client metadata patch jobs stopped part-way, so only some of the patches were sent. The jobs in started are running and were not cancelled; check them with get_client_metadata_patch_job(). The patches of the items in not_started_item_uuids were not sent, and can be sent again. The error that stopped the start is the cause (__cause__).