我有一个脚本处理一些退款付款,这些付款从大约 2月10日。服务器响应 Content-Type is not supported ... 即使我的标头 Content-Type 看起来确实正确
相同的代码在该日期之前工作,这让我相信服务器端发生了一些变化,但我最近在 square-connect API 更改日志中没有注意到任何可以解释这个问题的东西。
任何帮助将不胜感激:)谢谢
请参阅下面的 JSON 请求和响应。
{"method":"POST",
"headers":
{"Authorization":"Bearer [mypersonalid]",
"Accept":"application/json",
"Content-Type":"application/json"},
"payload":
{"payment_id":"[paymentid]",
"type":"FULL",
"reason":"reason"
}
}"
}
{"type":"bad_request",
"message":"The Content-Type of this request is not supported.
Supported type(s): application/json"
}