Have you been able to resolve this? I'm having this issue when trying to send emails to Postmark using the API. The response in the NotificationSent event is always NULL.
NotificationSent listener returning no response but SMS is sent
Hello, I'm sending SMS notifications to around 300 users using Twilio and using laravel-notification-channels/twilio. Each notification is sent through a queued job to defer the task from the app.
For logging purposes I have created a NotificationSent event listener, this event is fired when a notification is sent, and provide some information such as the $event->response from Twilio inside an object.
The main issue is that sometimes, I get the $event->response object NULL, but the SMS is sent on Twilio, it seems that for some reason I can get the response. I don't know if this is some timeout that have the job or what could be happening.
I have found that laravel-notification-channels/twilio uses the twilio/twilio-php package, this last, uses cURL to send the HTTP requests to Twilio, and the default timeout on the CurlClient is 60 seconds. Saying that, I don't know if the job gets this timeout... I'm out of ideas.
Please or to participate in this conversation.