Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RedeliveryStamp loses exception message in SendFailedMessageForRetryListener #42017

Copy link
Copy link
Closed
@garak

Description

@garak
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.