You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lambda TextractAsyncJobSubmitFunction runs to success, but actually fails to process the file. The following errors can be seen in CloudWatch:
An error occurred (InvalidParameterException) when calling the StartDocumentAnalysis operation: Request has invalid parameters
An error occurred (InvalidParameterException) when calling the StartDocumentTextDetection operation: Request has invalid parameters
Two issues: 1. the problem specified above, and 2. the Lambda itself should probably fail under these circumstances (can't perform operation after retries).
Thanks for this code.
The text was updated successfully, but these errors were encountered:
Thanks for bringing this to attention. The code in job submission Lambda now checks for invalid parameter exception, and fails gracefully with failure message captured in Log and returned to invocation source.
I don't think spaces are the root cause; it has to do with the fact that the S3 event is URL encoding the S3 key name and the Lambda isn't decoding it before passing to Textract. I opened issue #2 with PR #3 to decode the key name which should allow spaces to be used.
Lambda TextractAsyncJobSubmitFunction runs to success, but actually fails to process the file. The following errors can be seen in CloudWatch:
Two issues: 1. the problem specified above, and 2. the Lambda itself should probably fail under these circumstances (can't perform operation after retries).
Thanks for this code.
The text was updated successfully, but these errors were encountered: