使用Microsoft Store API回复应用评论时遭遇400错误问题
Microsoft Store评论相关API突发故障问题
我们使用Microsoft Store API处理应用用户评论已有1.5-2年,涉及接口包括获取应用评论、获取评论回复信息和提交评论回复。但6-7天前,后两个接口无法按文档正常工作,具体问题如下:
1. 查询评论可回复状态接口返回无响应体的400错误
请求示例:
GET https://manage.devcenter.microsoft.com/v1.0/my/reviews/{reviewId}/apps/{appId}/responses/info HTTP/1.1 Authorization: Bearer {token} Accept: */* Host: manage.devcenter.microsoft.com Accept-Encoding: gzip, deflate, br Connection: keep-alive
响应示例:
HTTP/1.1 400 Bad Request Content-Length: 0 MS-CorrelationId: bb9d3b90-936b-4a1a-be8f-28d0a59d2135 MS-RequestId: 7496bf73-b741-40d2-b358-c1a8cf448c17 MS-CV: lNVnuLCqhEaebqWz.0 MS-ServerId: 000007 Date: Mon, 20 Mar 2023 17:45:51 GMT
2. 提交评论回复接口返回格式错误400
无论标识符是否正确,均返回带错误体的400 Bad Request错误:
请求示例:
POST https://manage.devcenter.microsoft.com/v1.0/my/reviews/responses HTTP/1.1 Authorization: Bearer {token} Content-Type: application/json Accept: */* Host: manage.devcenter.microsoft.com Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 530 { "Responses": [ { "ApplicationId": "{ApplicationId}", "ReviewId": "{ReviewId}", "ResponseText": "Hello! Thanks for choosing our App! It`s very important for us to know your opinion. E-mail - support@test.com", "SupportEmail": "support@test.com", "IsPublic": true } ] }
响应示例:
HTTP/1.1 400 Bad Request Content-Length: 184 Content-Type: application/json; charset=utf-8 MS-CorrelationId: 2ac6a44c-5ba4-4617-8da1-35d97e8e1410 MS-RequestId: a2479ef3-e4b0-4bb7-8474-110ab4689e19 MS-CV: QRacfg2cJkyisRkt.0 MS-ServerId: 00000G Date: Mon, 20 Mar 2023 17:55:54 GMT {"code":4012,"description":"Description: The response is not in the correct format, or some parameter which is required is missing., Exception: ","data":[],"source":"ReviewResponseFD"}
目前获取应用评论列表的接口可正常工作,我们的合作伙伴及其他发行商也遇到类似问题,.NET实现的请求同样出现上述错误。
内容的提问来源于stack exchange,提问作者Illia Syvolovskyi
相关产品推荐
相关产品推荐

