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 the API call gets an error is useful to have the errors array returned from the call saved into the Mailchimp_Error object so it could be logged and it make more simple to debug error and problems.
Eg:
API POST /batches
If something went wrong it could returns something like this { "type": "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/", "title": "Invalid Resource", "status": 400, "detail": "The resource submitted could not be validated. For field-specific details, see the 'errors' array.", "instance": "**************", "errors": [ { "field": "operations.item:80", "message": "Schema describes object, array found instead" }, { "field": "operations.item:93", "message": "Schema describes object, array found instead" }, { "field": "operations.item:118", "message": "Schema describes object, array found instead" } ] }
The text was updated successfully, but these errors were encountered:
When the API call gets an error is useful to have the errors array returned from the call saved into the Mailchimp_Error object so it could be logged and it make more simple to debug error and problems.
mailchimp-lib/src/Mailchimp.php
Line 226 in 13e6271
Eg:
API POST /batches
If something went wrong it could returns something like this
{ "type": "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/", "title": "Invalid Resource", "status": 400, "detail": "The resource submitted could not be validated. For field-specific details, see the 'errors' array.", "instance": "**************", "errors": [ { "field": "operations.item:80", "message": "Schema describes object, array found instead" }, { "field": "operations.item:93", "message": "Schema describes object, array found instead" }, { "field": "operations.item:118", "message": "Schema describes object, array found instead" } ] }
The text was updated successfully, but these errors were encountered: