/v3/3rd/files/{file_id}这个接口前端页面提示返回错误:Json解析失败,查看日志结果如下

阅读次数 50

报错后进入后台查看日志,发现响应内容变成了xml格式,但是使用postman自行调用接口时返回的结构是json,结果如下:

[response]HTTP/1.1 200 
Content-Length: 285
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Connection: keep-alive
Content-Type: application/json
Date: Thu, 29 Feb 2024 07:18:37 GMT
Expires: 0
Pragma: no-cache
Request-Id: Sff701e3f1adf403ab030a412eab093ae
Set-Cookie: OSID=NjZmYWU4MWQtODEyOC00ZTg3LWI4MjAtYjg4OGRjMjcwZGFm; Domain=seinstantmessage.com; Path=/; Secure; HttpOnly; SameSite=none
Strict-Transport-Security: max-age=15724800; includeSubDomains
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block


00546_aDoc_arKfr商品介绍.docx112278SYSTEMSYSTEM

1 Answers

00546_aDoc_arKfr商品介绍.docx112278SYSTEMSYSTEM

您好,这个问题建议您这边在自己的接口服务中打印日志进一步排查一下接口在什么情况返回了xml