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
When sending an email using Sendgrid and the "category" field as a string, the webhook parser fails :
AbstractMailerEvent::setTags(): Argument #1 ($tags) must be of type array, string given, called in vendor/symfony/sendgrid-mailer/RemoteEvent/SendgridPayloadConverter.php on line 54
category - Categories are custom tags that you set for the purpose of organizing your emails. If you send single categories as an array, they will be returned by the webhook as an array. If you send single categories as a string, they will be returned by the webhook as a string.
How to reproduce
Have a Symfony app with the sendgrid webhook installed
Send an email with the sendgrid category as a string
=> the SendgridPayloadConverter should fails when calling setTags (which expects an array)
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
…ry support (ericabouaf)
This PR was merged into the 6.4 branch.
Discussion
----------
[RemoteEvent][Webhook] fix SendgridPayloadConverter category support
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#59374
| License | MIT
Commits
-------
186daa5 [Webhook][RemoteEvent] fix SendgridPayloadConverter category support
Symfony version(s) affected
6.4.17
Description
When sending an email using Sendgrid and the "category" field as a string, the webhook parser fails :
According to Sendgrid's documentation (https://www.twilio.com/docs/sendgrid/for-developers/tracking-events/event#json-objects) :
How to reproduce
=> the SendgridPayloadConverter should fails when calling
setTags
(which expects an array)Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: