You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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())
The text was updated successfully, but these errors were encountered:
That info should come from the new ErrorDetailsStamp, implemented in #32904 (5.2.0).
In our case that stamp is absent, so the information is simply lost. We need to dig deeper to understand why that stamp is not attached to our failed messages.
The reason it doesn't work for us is that we're on 5.1, maybe the deprecation was erroneously backported there, dropping the info?
Also, we need to check if the listener works correctly on 5.2+. We'll update the app to at least 5.2 to check it.
Symfony version(s) affected: 5.0 - 5.4
Description
In
onMessageFailed
method ofSendFailedMessageForRetryListener
, precisely in line 89, theRedeliveryStamp
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())
The text was updated successfully, but these errors were encountered: