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

Skip to content

Conversation

stof
Copy link
Member

@stof stof commented Oct 17, 2023

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT

During their outage yesterday where the endpoint returned errors with status code 500, there was no message key in the json response.
This avoids a notice when the key does not exist. Instead, it uses the full response content, as done when the decoding fails.

This is the same change than #52095 but for the new Brevo bridge

@stof stof force-pushed the brevo_error_response branch from a60d63f to 517ceae Compare October 17, 2023 08:46
@carsonbot carsonbot changed the title Handle Brevo error responses without a message key [Notifier] Handle Brevo error responses without a message key Oct 17, 2023
@OskarStark OskarStark changed the title [Notifier] Handle Brevo error responses without a message key [Notifier][Brevo] Handle error responses without a message key Oct 17, 2023
@carsonbot carsonbot changed the title [Notifier][Brevo] Handle error responses without a message key [Notifier] [Brevo] Handle error responses without a message key Oct 17, 2023
@nicolas-grekas
Copy link
Member

Thank you @stof.

@nicolas-grekas nicolas-grekas merged commit f4b774f into symfony:6.4 Oct 17, 2023
@stof stof deleted the brevo_error_response branch October 17, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants