当我尝试将Node.js与Mailchimp API 3.0集成时,我将带有以下正文的POST http请求发送到“ / lists / {list_id} | Batch sub / unsub list member”:
{
"members":
[{"email_address":"testtest@qq.com",
"status":"subscribed",
"merge_fields":{"FNAME":"César Octavio"}
}],
"update_existing":true
}
但得到:
{
"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":"bae54115-1fd9-4d46-b203-775f0fdb063e",
"errors":[{"field":"","message":"Schema describes object, NULL found instead"}]
}
我认为是“CésarOctavio”中的这个西班牙语字符é引起了问题。因为当我将其移出时,它可以正常工作。
我该如何解决?我花了整整一天的时间试图完成它,但是失败了。