Skip to content

接口报错 json 解析出错 #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
178me opened this issue Oct 22, 2023 · 2 comments
Open

接口报错 json 解析出错 #101

178me opened this issue Oct 22, 2023 · 2 comments

Comments

@178me
Copy link
Contributor

178me commented Oct 22, 2023

今天使用发现一个问题,调用接口返回了 200 状态码 但是 body 为空,然后导致json无法解析报错,

经过重重排查,发现最终的问题是在这里
image
感觉像是被针对了一样,只有这个特定的 User-Agent 才会出错

临时解决办法很简单

image

@henrycoding
Copy link

使用了你的方法,确定解决了问题,感觉被针对了,正在替换

@super-cookerBH4HZD
Copy link

终于解决了,多谢,自己研究了半天😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@henrycoding @178me @super-cookerBH4HZD and others