Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[symfony/mailjet-mailer] Fix invalid mailjet error managment#45564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@alamirault
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#45420
LicenseMIT
Doc PR

When mailjet API status code is not 200, responseis structured (see-below) and is not currently well managed.

Example of bad request response:

{"Messages": [    {"Status":"error","Errors": [        {"ErrorIdentifier":"8e28ac9c-1fd7-41ad-825f-1d60bc459189","ErrorCode":"mj-0005","StatusCode":400,"ErrorMessage":"The To is mandatory but missing from the input","ErrorRelatedTo": ["To"]        }      ]    }  ]}

This PR fixUndefined index: Message and add unit tests.

@carsonbotcarsonbot added this to the6.1 milestoneFeb 26, 2022
@alamiraultalamirault changed the base branch from6.1 to5.4February 26, 2022 10:49
@alamiraultalamirault changed the titleFix 45420 invalid mailjet error managment[symfony/mailjet-mailer] Fix invalid mailjet error managmentFeb 26, 2022
@carsonbot
Copy link

Hey!

I think@tcheymol has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@fancywebfancyweb modified the milestones:6.1,5.4Mar 2, 2022
@alamiraultalamiraultforce-pushed thefix-45420-invalid-mailjet-error-managment branch from5c0095a toe83abc2CompareMarch 9, 2022 17:45
@fabpotfabpotforce-pushed thefix-45420-invalid-mailjet-error-managment branch frome83abc2 toaa1e12cCompareMarch 12, 2022 09:10
@fabpot
Copy link
Member

Thank you@alamirault.

@fabpotfabpot merged commitb7e878c intosymfony:5.4Mar 12, 2022
This was referencedApr 2, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@fancywebfancywebfancyweb approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

[symfony/mailjet-mailer] Error message is not processed correctly

4 participants

@alamirault@carsonbot@fabpot@fancyweb

[8]ページ先頭

©2009-2025 Movatter.jp