Skip to content
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

Fixed eventBridge.getEvents() when there are no available messages in SQS queue #10

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

bayoudhi
Copy link
Contributor

Hey!

First of all, I want to thank you for this library! I found it useful and helpful keep it up 🚀

Well, I received the following error TypeError: Cannot read property 'map' of undefined when trying to call eventBridge.getEvents() on an empty SQS queue.

The problem is that Messages attribute is not returned when calling sqs.receiveMessage, only ResponseMetadata attribute is returned in this particular case.

Fixed getEvents() when the SQS queue is empty
@hamilton-s
Copy link
Contributor

Hey!

First of all, I want to thank you for this library! I found it useful and helpful keep it up 🚀

Well, I received the following error TypeError: Cannot read property 'map' of undefined when trying to call eventBridge.getEvents() on an empty SQS queue.

The problem is that Messages attribute is not returned when calling sqs.receiveMessage, only ResponseMetadata attribute is returned in this particular case.

Thanks for the contribution! :)

@hamilton-s hamilton-s merged commit 9553cf0 into aleios-cloud:main Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants