Undefined array key "action"
JhumanJ opened this issue · comments
Hi there, thanks for this great package. When used, we very often get this error: Undefined array key "action"
from /vendor/oza75/laravel-ses-complaints/src/Requests/BounceRequest.php
line 53. More details here.
Do you think this could be a mis-configuration issue on my side? Or do you have any guideline on how to resolve this?
Thanks!
Hi there, thanks for this great package. When used, we very often get this error:
Undefined array key "action"
from/vendor/oza75/laravel-ses-complaints/src/Requests/BounceRequest.php
line 53. More details here.Do you think this could be a mis-configuration issue on my side? Or do you have any guideline on how to resolve this?
Thanks!
That error message appears due to a bug in this package.
Per Amazon's documentation, the "action" field is optional for a bounced recipient. However, the current implementation of the BounceRequest in this package does not properly test if the "action" field exists before trying to access it nor does it provide a fallback if the data isn't there.
Fixes in v0.0.5