symfony: [Messenger] Message retried in failure transport dropped on exception

Symfony version(s) affected: 4.3.2

Description
Message retried in failure transport dropped on exception

How to reproduce
I configured a failure transport on symfony messenger (like explain here: https://symfony.com/blog/new-in-symfony-4-3-messenger-failure-transport) I throw an error on my handler, the message is retried 3 times, and then sent to the failure transport.

Then, I retry the failed message with bin/console messenger:consume failed or bin/console messenger:failed:retry {id}. The message handling fail again and the message is dropped.

Is it the normal behaviour ? Or is it a bug ?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Hello guys. What the status for this issue? Are you still planning fix this?

@skalpa I’ve made the modification on the class FlattenException like you have suggered me.

I confirm you that the problem has been fixed with this modification.

I’ve succeed to relaunch many time my message in error with the command bin/console messenger:failed:retry <id>.

@tienvx Here the entire message is dropped, as the Serializer component is unable to deserialize the message.

Not everyone may be affected, as it only happens when using the component as the messenger serializer, which is not the default, and has to be configured as described in https://github.com/symfony/symfony/issues/32719#issuecomment-515360040.