-
Notifications
You must be signed in to change notification settings - Fork 421
Bug: Error parsing AmazonMQ message #4051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hi @SZubarev! Thanks for reporting this bug! We would greatly appreciate your contribution. Would you be interested in submitting a PR to fix this? |
…ents (#4053) * Fix bug #4051 * Fix tests --------- Co-authored-by: Stan Zubarev <[email protected]> Co-authored-by: Leandro Damascena <[email protected]>
|
Expected Behaviour
AmazonMQ (ActiveMQ) message contains queue name in
...'destination': {'physicalName': 'MY.QUEUE.NAME'}...
as per documentationwhile parsing code is looking for
return self["destination"]["physicalname"]
which causes parsing error
Current Behaviour
Error when calling message.destination_physicalname
Code snippet
Possible Solution
Fix typo here
Steps to Reproduce
Send message via AmazonMQ, connect lambda function as event consumer
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
Lambda Layers
Debugging logs
The text was updated successfully, but these errors were encountered: