Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RedeliveryStamp loses exception message in SendFailedMessageForRetryListener #42017

Closed
@garak

Description

@garak

Symfony version(s) affected: 5.0 - 5.4

Description
In onMessageFailed method of SendFailedMessageForRetryListener, precisely in line 89, the RedeliveryStamp constructor is only called with retry count, and message is lost.

How to reproduce
Have a message fails with an error and retry. Log the tries. Instead of getting the error message, you get null.

Possible Solution
The constructor of RedeliveryStamp should be called with the second argument, too.

Current call: new RedeliveryStamp($retryCount)
New call: new RedeliveryStamp($retryCount, $throwable->getMessage())

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions