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

TypeError on getMessages() if it isn't set to an array #1280

Open
nesl247 opened this issue Aug 3, 2022 · 3 comments
Open

TypeError on getMessages() if it isn't set to an array #1280

nesl247 opened this issue Aug 3, 2022 · 3 comments

Comments

@nesl247
Copy link

nesl247 commented Aug 3, 2022

PHP Fatal error: Uncaught TypeError: AsyncAws\Sqs\Result\ReceiveMessageResult::getMessages(): Return value must be of type array, null returned in /srv/app/vendor/async-aws/sqs/src/Result/ReceiveMessageResult.php:28

@jderusse
Copy link
Member

jderusse commented Aug 3, 2022

Thanks for reporting this issue.
Reading the code, I don't understand how it is possible to get null, at this point of code.

Could you provide a reproducer? or debug and understand what happens?

@nesl247
Copy link
Author

nesl247 commented Aug 4, 2022

I don't have a reproducter, but for more context, we are using https://github.com/symfony/amazon-sqs-messenger. We're not doing anything ourselves, this is happening through that library.

https://github.com/symfony/amazon-sqs-messenger/blob/6.1/Transport/Connection.php#L77 is where the problem starts in the stack trace.

@juniorb2ss
Copy link

Seems like it is related to #1412 since we see this error when the worker is stopped by the time limit.

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

No branches or pull requests

3 participants