Skip to content
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

更新面板请求失败 #56

Closed
yuesefengqin opened this issue Jul 4, 2022 · 2 comments
Closed

更新面板请求失败 #56

yuesefengqin opened this issue Jul 4, 2022 · 2 comments

Comments

@yuesefengqin
Copy link

SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Response.json (file:///G:/yuanshen%20bot/Yunzai-Bot/node_modules/_node-fe
tch@3.2.4@node-fetch/src/body.js:149:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.request (file:///G:/yuanshen%20bot/Yunzai-Bot/plugins/miao-p
lugin/components/profile-data/enka.js:14:16)
at async Object.request (file:///G:/yuanshen%20bot/Yunzai-Bot/plugins/miao-p
lugin/components/Profile.js:61:14)
at async Module.getProfile (file:///G:/yuanshen%20bot/Yunzai-Bot/plugins/mia
o-plugin/apps/character/profile-common.js:185:14)
at async Object.dealMsg (file:///G:/yuanshen%20bot/Yunzai-Bot/lib/dealMsg.js
:193:19)
[2022-07-04T23:36:16.343] [INFO] succeed to send: [Group(887823552)] 请求失败

前几天还可以正常更新面板,没做任何改动这几天更新就失败了,猜测是没有收到 JSON 格式的数据,大概率查询后接收到的是 HTML 的数据,根据实际情况判断是大概率因为连接enka api失败 (或者说被墙了?) 然后接受到 html 404 的数据,尝试一下直连 https://enka.shinshin.moe/ 该网页是OK的,请大佬看看是什么问题

@Cocoyamnut
Copy link
Contributor

服务器网络不行

@1011382654
Copy link

今天碰到了应该是enka的问题

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