awslabs / awslabs/amazon-sqs-python-extended-client-lib

Client not deleting SQS messages

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
52
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Currently, the delete_messages function fails to delete the message in SQS because it is unable to get the correct original receipt handle. It's a simple fix.

```python
def _get_original_receipt_handle(self, modified_receipt_handle: str) -> str:
"""
Responsible for returning the receipt handle of the message before
it was modified.

:modified_receipt_handle: Represents the receipt handle which was modified
when the message was stored in S3.

"""
return modified_receipt_handle.split(S3_KEY_MARKER)[-1]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.