aws-samples / aws-samples/amazon-textract-idp-cdk-constructs
KeyError on 'ReceiptHandle' - use 'receiptHandle' from SQS
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
A KeyError: 'ReceiptHandle' occurs during SQS event processing because the code incorrectly attempts to access the message attribute using 'ReceiptHandle' instead of the actual key 'receiptHandle' sent by SQS.
While identified in the create_manifest_list function (lambda/executions_start_throttle/app/start_execution.py), this incorrect key usage might be present in other code locations handling SQS messages.
`[ERROR] KeyError: 'ReceiptHandle'
Traceback (most recent call last):
File "/var/task/start_execution.py", line 146, in lambda_handler
manifest_list: list[tm.IDPManifest] = create_manifest_list(event)
File "/var/task/start_execution.py", line 99, in create_manifest_list
value=record['ReceiptHandle']))
`
Contributor guide
Assessment
This issue has not been assessed yet.