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
I believe I found a problem in Laravel 10.13.1 introduced by a recent change.
The issue is related to notifications with attachments (like PDF files). Due to the change, the NotificationSent event listeners can't be queued anymore. An InvalidPayloadException exception is thrown.
I included more information in the "Steps To Reproduce" section below.
Steps To Reproduce
Starting with a fresh installation of Laravel 10.13.1+:
1. Set up a notification with a file attachment (binary file such as PDF)
Laravel Version
10.13.1
PHP Version
8.2.4
Database Driver & Version
MySQL 8 (Laravel Sail)
Description
Hello!
I believe I found a problem in Laravel 10.13.1 introduced by a recent change.
The issue is related to notifications with attachments (like PDF files). Due to the change, the
NotificationSent
event listeners can't be queued anymore. AnInvalidPayloadException
exception is thrown.I included more information in the "Steps To Reproduce" section below.
Steps To Reproduce
Starting with a fresh installation of Laravel 10.13.1+:
1. Set up a notification with a file attachment (binary file such as PDF)
2. Set up a
NotificationSent
event listener3. Listen to
NotificationSent
event4. Notify a user
Result:
See
Illuminate\Queue\InvalidPayloadException
withUnable to JSON encode payload. Error code: 5.
message.The text was updated successfully, but these errors were encountered: