Expose field_warnings / field_errors arrays for Lists.BatchAsync()
See original GitHub issueHi
The following call is failing for me. memberBatchList
is a combination of new and existing subscribers to the list.
BatchList memberBatchList = new BatchList {
Members = subscribers,
UpdateExisting = false
};
BatchListResponse resp = _mailChimp.Lists.BatchAsync(memberBatchList, this.mailChimpListId).Result;
resp.Errors
contains an ErrorResponse
for each provided Member
. The Error
property is “The resource submitted could not be validated. For field-specific details, see the ‘errors’ array.”
I’ve seen this before with different libraries, usually it’s a required merge field that is not present. Mailchimp passes these back via the field_errors
array.
The docs say:
"InvalidResource The resource submitted could not be validated.
For field-specific details, see field_warnings or field_errors objects. This error means that the object submitted to a POST or PATCH request failed to validate against JSON schema, and could relate to campaign, interest group, merge field, or any other available object."
Is it possible to expose these via this library?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Sorry - Misread let me look into this more.
Thank you for the research.