向Mailchimp发布批处理操作,我不断收到“模式描述对象,找到NULL”错误。我在他们的mailchimp游乐场https://us10.api.mailchimp.com/playground/中遇到错误。直到几周前,这种方法在一年内都运行良好,然后停止了。
响应正文:
{"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":"70a5c431-1cc4-4933-a5c9-2ab84ed06263","errors":[{"field":"","message":"Schema describes object, NULL found instead"}]}
我尝试删除空格,合并字段,并检查以确保合并字段捕获mailchimp列表并验证listID与正确列表匹配。
还有其他建议可以帮助您吗?
谢谢
{"operations": [{
"method": "POST",
"path": "lists/436db7f77acd/members",
"body": "{\"email_address\":\"yahoo@yahoo.com\", \"status\":\"subscribed\"
,\"tags\":[\"Green Standard\", \"Customer Care\",\"96959N\"]
,\"merge_fields\": {
\"BADGE\": \"\",
\"CPATH\": \"https://secu/Certificate/96959N_0978317_Certificate.pdf\",
\"FNAME\": \"Charles\",
\"FRAME\": \"Coupon Code: 1CZ3d17 Expires: 12/31/2019\",
\"FRAMEHEAD\": \"Certificate\",
\"LNAME\": \"Gren\",
\"MKAL\": \"17MA19\",
\"MKAMT\": \"$250\",
\"MMERGE3\": \"Global Production\",
\"MMERGE4\": \"96959N\"
\"MMERGE5\": \"13d215\",
\"MMERGE6\": \"ABC, Inc.\"
}
}"
}]}