Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SendgridRequestParser converts only the first event on the webhook  #58398

Closed
@salvatorepandolfi

Description

@salvatorepandolfi

Symfony version(s) affected

7.x

Description

When send grid pack more than one events in a webhook request, the parser only takes the first one and ignore the others.
Apparently the events are always connected to the same message id, but what happen if the first action listed is not the one more meaningful?
For instance, if I want to track down the open actions and this is not the first one on the packed list of action received in a request, I'll lose the sensitive information.

How to reproduce

Go to the https://app.sendgrid.com/settings/mail_settings/webhook_settings
create a new event webhook
click on test integration button

Possible Solution

return an array of AbstractMailerEvent instead of a single event

Additional Context

No response

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