The Comprehend connector can return errors when input validation fails, authentication or authorization is unsuccessful, content exceeds Amazon Comprehend limits, or Amazon Comprehend cannot process the submitted content. These errors can be handled within a process to support exception handling, troubleshooting, and recovery workflows.
Some errors originate from the connector itself, while others are returned by Amazon Comprehend or related AWS services.
The following errors can be returned by the Comprehend connector:
| Error | Description |
|---|---|
| MISSING_INPUT | A required input parameter was not provided. Verify that all mandatory connector inputs are mapped and contain values. |
| INVALID_INPUT | An input parameter contains an invalid value or unsupported data type. Verify that the input matches the format expected by the connector action. |
| INVALID_RESULT_FORMAT | The response returned by Amazon Comprehend could not be parsed by the connector. This can occur when the response format is unexpected or invalid. |
| TEXT_SIZE_LIMIT_EXCEEDED | The submitted text exceeds the maximum size supported by the selected Amazon Comprehend operation. Reduce the amount of text being analyzed or use a processing method designed for larger documents. |
| TOO_MANY_REQUEST | The Amazon Comprehend request throughput limit has been exceeded. Retry the operation after a delay or reduce the request rate. |
| UNSUPPORTED_LANGUAGE | The language detected in the content is not supported by the requested analysis operation. |
| CLIENT_EXECUTION_TIMEOUT | The analysis operation did not complete within the configured timeout period. Increase the timeout value or reduce the size of the content being analyzed. |
| UNKNOWN_ERROR | An unexpected error occurred during connector execution. Review connector configuration, content, and AWS service availability for possible causes. |
| BAD_REQUEST | The request could not be processed because the request syntax or content was invalid. |
| UNAUTHORIZED | Authentication information is missing or invalid. Verify the configured AWS credentials. |
| FORBIDDEN | The request was understood, but the configured AWS user or role does not have sufficient permissions to perform the requested operation. |
| NOT_FOUND | The specified resource could not be found. Verify configuration values, custom model ARNs, and AWS resources. |
| METHOD_NOT_ALLOWED | The requested operation is not supported for the targeted resource. |
| NOT_ACCEPTABLE | The service cannot produce a response that matches the request requirements. |
| REQUEST_TIMEOUT | The request was not completed within the allowed time period. |
| CONFLICT | The request conflicts with the current state of the resource. |
| GONE | The requested resource is no longer available. |
| UNPROCESSABLE_ENTITY | The request was syntactically valid, but the service could not process the supplied values or instructions. |
| LOCKED | The requested resource is currently locked and cannot be processed. |
| FAILED_DEPENDENCY | The operation failed because a dependent request, service, or resource failed. |
| INTERNAL_SERVER_ERROR | The service encountered an unexpected condition that prevented it from fulfilling the request. |
| NOT_IMPLEMENTED | The requested functionality is not supported by the service. |
| BAD_GATEWAY | An upstream service returned an invalid response. |
| SERVICE_UNAVAILABLE | The service is temporarily unavailable or unable to process requests. |
| GATEWAY_TIMEOUT | The service did not receive a response from an upstream system within the expected time period. |