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

关于面板更新失败 #63

Open
yoimiya-kokomi opened this issue Jul 10, 2022 · 72 comments
Open

关于面板更新失败 #63

yoimiya-kokomi opened this issue Jul 10, 2022 · 72 comments
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists

Comments

@yoimiya-kokomi
Copy link
Owner

yoimiya-kokomi commented Jul 10, 2022

面板更新服务来自enka api

  1. 若更新持续失败请检查 bot所在的机器 能否正常访问enka。若无法访问请使用科学方法处理,或将bot部署在能够访问的云服务器上(例如腾讯云)
  2. enka服务可能偶发服务问题(例如查询500),一般会在2~6小时恢复,请等待enka服务恢复即可
  3. 其余情况可能偶发某个uid访问不稳定(例如网页能访问,但bot失败),可稍等后重试
  4. 游戏版本更新时服务需要进行适配,可能会停止服务更长时间,此为正常现象,耐心等待即可

国内网络如Enka服务访问不稳定,可尝试更换 @MiniGrayGay 大佬提供的中转服务

确保miao-plugin已经更新到最新的情况下, 复制config/profile_default.js
config/profile.js,修改其中enkaApi的url配置,配置完成后重启Bot即可生效

面板更新类issue可在此贴下讨论,其余issue进行关闭

@yoimiya-kokomi yoimiya-kokomi added documentation Improvements or additions to documentation duplicate This issue or pull request already exists labels Jul 10, 2022
@yoimiya-kokomi yoimiya-kokomi pinned this issue Jul 10, 2022
@Ahanlei123
Copy link

我也是这样一直请求失败

@Ahanlei123
Copy link

自己电脑挂倒是可以

@samabl
Copy link

samabl commented Jul 11, 2022

一直回复“请求失败:可能是面板服务并发过高,请稍后重试”

@simo8102
Copy link

我自己用cf反代了https://enka.shinshin.moe/
目录在\Yunzai-Bot\plugins\miao-plugin\components\profile-data\enka.js

@minelg
Copy link

minelg commented Jul 25, 2022

我这里也是一直存在更新失败的问题,报错是
FetchError: request to https://enka.shinshin.moe/u/193355064/__data.json failed,
reason: read ECONNRESET
at ClientRequest. (file:///C:/Users/hp/Desktop/Genshin%20Bot/Yunz
ai-Bot/node_modules/_node-fetch@3.2.8@node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:527:28)
at TLSSocket.socketErrorListener (node:_http_client:454:9)
at TLSSocket.emit (node:events:527:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: 'read'
我这里用了科学上网 直接访问网页也能打开请问还有什么办法可以解决嘛......

@yetutu15
Copy link

FetchError: request to https://enka.shinshin.moe/u/163202620/__data.json failed, reason: read ECONNRESET
at ClientRequest. (file:///F:/Yunzai-Bot/node_modules/_node-fetch@3.2.8@node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:527:28)
at TLSSocket.socketErrorListener (node:_http_client:454:9)
at TLSSocket.emit (node:events:527:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: 'read'
}
一直这样,有解决了的大佬吗

@1011382654
Copy link

enka那边上了安全产品只要超过一定频率就会被限制,再请求就返回403。enka经常出问题能否考虑开放miaomiao原来的那个接口服务自行部署,或者通过什么方式能获取?期望能拉下q群1011382654

@minelg
Copy link

minelg commented Jul 29, 2022

enka那边上了安全产品只要超过一定频率就会被限制,再请求就返回403。enka经常出问题能否考虑开放miaomiao原来的那个接口服务自行部署,或者通过什么方式能获取?期望能拉下q群1011382654

插件最新的更新 有一个国内的api 我换成那个api更新挺快的 四五秒就查询出来了>.<

@Algoinde
Copy link
Contributor

Algoinde commented Jul 29, 2022

Hello! Enka.Network dev here. I'm seeing a lot of HTTP 403 from Cloudflare due to automatic bot detection and a very large number of requests.

  1. If you use the API a lot, please contact me on Discord (if you can access it) to request an API key that will let you bypass the Cloudflare restrictions.
  2. Please add a unique User-Agent header to this bot so I can detect them and increase the rate limit for the bot.
  3. Consider supporting me on Patreon if you can so I can keep this API running :)
  4. World Tree support will come soon.

----------自动翻译----------

你好! Enka.Network 开发人员在这里。 由于自动机器人检测和大量请求,我从 Cloudflare 看到了很多 HTTP 403。

  1. 如果您经常使用 API,请在 Discord 上与我联系(如果您可以访问它)以请求可以让您绕过 Cloudflare 限制的 API 密钥。
  2. 请向该机器人添加一个唯一的 User-Agent 标头,以便我可以检测到它们并增加机器人的速率限制。
  3. 如果可以的话,考虑在 Patreon 上支持我,这样我就可以让这个 API 继续运行 :)
  4. 世界树支持即将到来。

@minelg
Copy link

minelg commented Jul 29, 2022

Hello! Enka.Network dev here. I'm seeing a lot of HTTP 403 from Cloudflare due to automatic bot detection and a very large number of requests.

  1. If you use the API a lot, please contact me on Discord (if you can access it) to request an API key that will let you bypass the Cloudflare restrictions.
  2. Please add a unique User-Agent header to this bot so I can detect them and increase the rate limit for the bot.
  3. Consider supporting me on Patreon if you can so I can keep this API running :)
  4. Enka.Network uses real Genshin accounts. If you are able to donate account details of accounts you don't use (even 冒险等阶 1), this will help a lot.
  5. World Tree support will come soon.

Please, I wonder if using the address(https://enka.microgg.cn/) also requires an API key to bypass the restrictions? The default address(https://enka.shinshin.moe/) often timeout. If not needed, I will continue to use this address,which can get data more faster than before.
I‘m running an automatic bot now for my group, and I keep it 24h on, but there almost only about 30 times requests one day.(My group chat has about 40 people)
btw, may I have your Discord number to be further contact with you? I have some genshin account(Asia server),I can provide it to you if it helps you.

@minelg
Copy link

minelg commented Jul 29, 2022

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

@letter-xin
Copy link

#面板更新 的时候会直接回复”请求失败“
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16)
at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14)
at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14)
at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19)
at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52)
ret true

@letter-xin
Copy link

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

@minelg
Copy link

minelg commented Jul 29, 2022

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

在这个github上面下载zip覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来 重命名为profile.js 在里面有国内服务的API 把下面的API改一下再重启一次机器人就行了

@Algoinde
Copy link
Contributor

Please, I wonder if using the address( https://enka.microgg.cn/ ) also requires an API key to bypass the restrictions?

I don't know what enka.microgg.cn is. What is the request format for UID?

btw, may I have your Discord number to be further contact with you? I have some genshin account(Asia server),I can provide it to you if it helps you.

https://discord.gg/5zhYc4QRJJ

@ChthollyWn
Copy link

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

在这个github上面下载zip覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来 重命名为profile.js 在里面有国内服务的API 把下面的API改一下再重启一次机器人就行了

我也是遇到和楼上同一个问题,按照你的回复更新了api并重启了bot,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用?
image

@minelg
Copy link

minelg commented Jul 29, 2022

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

在这个github上面下载zip覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来 重命名为profile.js 在里面有国内服务的API 把下面的API改一下再重启一次机器人就行了

我也是遇到和楼上同一个问题,按照你的回复更新了api并重启了bot,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用? image

不太清楚 我这里用的那个国内服务的API是好用的
image

@letter-xin
Copy link

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

在这个github上面下载zip覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来 重命名为profile.js 在里面有国内服务的API 把下面的API改一下再重启一次机器人就行了

我也是遇到和楼上同一个问题,按照你的回复更新了api并重启了bot,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用? image

我和你一样欸。我变成并发过高了

@ChthollyWn
Copy link

#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/profile-data/enka.js:13:16) at async Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50:14) at async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) at async miao.dispatch (file:///home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) at async PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231:52) ret true

更新一下插件 我这边更新到了最新的喵喵插件然后API配置里面改成了国内服务的那个API 更新速度现在挺快的 大约四五秒就更新上了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改

在这个github上面下载zip覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来 重命名为profile.js 在里面有国内服务的API 把下面的API改一下再重启一次机器人就行了

我也是遇到和楼上同一个问题,按照你的回复更新了api并重启了bot,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用? image

我和你一样欸。我变成并发过高了

看来咱俩问题相同,就是不知道怎么解决了,我猜应该不是api的问题

@Algoinde
Copy link
Contributor

This will allow me to increase ratelimits: #84

@ChthollyWn
Copy link

This will allow me to increase ratelimits: #84

更新之后可以正常使用了,非常感谢

@habacat
Copy link

habacat commented Jul 29, 2022

同样的问题,Mark

@Algoinde
Copy link
Contributor

Algoinde commented Jul 29, 2022

So it seems enka.microgg.cn uses Enka.Network API. Please don't use it, as it's someone's website. Please make direct requests to Enka.Network with the correct User-Agent in #84.

We're making special rules for enka.microgg.cn so you can use PicoGG's proxy. The number of requests became too high so my site blocked microgg and minigg...

@MiniGrayGay
Copy link
Contributor

So it seems enka.microgg.cn uses Enka.Network API. Please don't use it, as it's someone's website. Please make direct requests to Enka.Network with the correct User-Agent in #84.

enka.microgg.cn & enka.minigg.cn 是因为大陆部分线路因为GFW,所以设置的反向代理服务器

@minelg
Copy link

minelg commented Jul 29, 2022

确实我用了新的这个地址以后更新就特别快 几秒 直接用enka.network的话要等挺久,有时候也会请求失败。

@minelg
Copy link

minelg commented Jul 29, 2022

So it seems enka.microgg.cn uses Enka.Network API. Please don't use it, as it's someone's website. Please make direct requests to Enka.Network with the correct User-Agent in #84.

We're making special rules for enka.microgg.cn so you can use PicoGG's proxy. The number of requests became too high so my site blocked microgg and minigg...

Okay, thanks a lot!

@slzzInTheForest
Copy link

#面板更新的时候会直接回复“请求失败” SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse() at Response.json (file:///home/Yunzai-Bot/node_modules/_node-fetch@ 3.2.9@node-fetch/src/body.js:149:15) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.request (file:///home/Yunzai-Bot/ plugins/miao-plugin/components/profile-data/enka.js:13:16) 在异步 Object.request (file:///home/Yunzai-Bot/plugins/miao-plugin/components/Profile.js:50 :14) 在 async Module.getProfile (file:///home/Yunzai-Bot/plugins/miao-plugin/apps/character/profile-common.js:185:14) 在 async miao.dispatch (file:// /home/Yunzai-Bot/plugins/miao-plugin/adapter/index.js:32:19) 在异步 PluginsLoader.deal (file:///home/Yunzai-Bot/lib/plugins/loader.js:231: 52) 说真话

更新一下我的插件现在更新到最新的喵喵插件然后API配置里面变成国内服务的那个API更新速度挺快的大约四五秒就更新了

我这里#喵喵更新,已经是最新的了,后面那个api是怎么改的

在这个github下载覆盖到插件文件夹里面,然后Yunzai-Bot\plugins\miao-plugin\config\文件夹里面的profile_default.js复制一份出来重命名为profile.js里面有国内服务的API下面把 API 改一下再重启一次机器人就行了

我也是遇到和楼上同样的问题,按照你的回复显示更新了一个机器人的问题,并重新启动了一个问题,现在是我的服务器无法使用吗?图片

我和你过度欸。

看来咱俩问题一样,就是不知道怎么解决了,我猜应该不是api的问题

我也有这个问题,应该不是API的问题,wget一下可以正常获取json文件

@MiniGrayGay
Copy link
Contributor

面板更新出现提示【负载高】之类的错误,确保已经升级到最新版miao-plugin。 如查询还是遇到【负载高】的情况,可以复制 config/profile_default.jsconfig/profile.js 并且按照里面提示修改enka服务器地址。

今天是上海节点连接比较稳定

最新版 miao-plugin 的修改位置在 config/profile.js 的第26行

@mmmooyuFei
Copy link

[非api问题]
如果'yunzai/data/UserData'目录下存在一个'1234567.json'文件,但为无效文件(文件大小0b).
对应ID使用'#更新面板'的时候就会返回[请求失败];手动删除'1234567.json'文件再使用'#更新面板'即可恢复正常.

那么在使用'#更新面板'命令时增加一个文件判断(删)能避免此问题发生?

@Georgebillion
Copy link

今日汇报,enka直接上不去,526错误,面板更新全部失效,2个代理也没用。
附上截图:
image

@MiniGrayGay
Copy link
Contributor

MiniGrayGay commented Oct 30, 2022

今日汇报,enka直接上不去,526错误,面板更新全部失效,2个代理也没用。 附上截图: image

image

@Renaissance0930
Copy link

这个“1234567”文件名是指的uid,可能是你之前测试的时候绑定过这个uid,但是原神不存在1234567这个id,所以会请求失败

@mmmooyuFei
Copy link

不是的噢,我这里写1234567只是举例,实际上是一个正常玩家的UID,并没有任何错误.而且我第二句的意思是重建文件之后就该UID可以正常使用.

@Msdyz123
Copy link

大佬们,节点换成上海的那个了,但是持续两天左右了,所有人在更新面板的时候都显示“请求失败,可能是服务负载较高,请稍后重试...”是啥原因啊,镜像挂了还是啥T=T

@nk-ava
Copy link

nk-ava commented Nov 30, 2022

enka.network现在好像查不了b服的了
image

@littleseven777
Copy link

littleseven777 commented Dec 7, 2022

image
已经把节点换成上海和广州都试过了,但是还是出现这样的情况,请问下如何解决。
环境是腾讯云的Lighthouse

@Georgebillion
Copy link

今日汇报,enka貌似又炸了,是不是老问题?附图:
image

@Algoinde
Copy link
Contributor

Algoinde commented Dec 29, 2022

[Enka.Network API]
⚠️ After Raiden banner the traffic to Enka.Network is a lot higher than usual. The requests can be very slow (5-10 seconds), sorry about this.

image

@yelinlan
Copy link

image
image
替换enka地址,无变化

@MiniGrayGay
Copy link
Contributor

enka过年这段时间可能比较容易429更新失败,有一半的账号失效,暂时没时间去更新

@windowBR
Copy link

windowBR commented Feb 8, 2023

面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/110554053/ failed, reason: Client network socket disconnected before secure TLS connection was established
    at ClientRequest.<anonymous> (file:///home/windowbr/Yunzai-Bot/node_modules/.pnpm/node-fetch@3.2.6/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:390:28)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: undefined
}

更新面板时出现了这样的错误,请问一些是什么情况,是本地服务器设置问题还是api负载过高
服务器是位于日本的Azure云服务器,系统为CentOS 7

@MiniGrayGay
Copy link
Contributor

面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/110554053/ failed, reason: Client network socket disconnected before secure TLS connection was established
    at ClientRequest.<anonymous> (file:///home/windowbr/Yunzai-Bot/node_modules/.pnpm/node-fetch@3.2.6/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:390:28)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: undefined
}

更新面板时出现了这样的错误,请问一些是什么情况,是本地服务器设置问题还是api负载过高 服务器是位于日本的Azure云服务器,系统为CentOS 7

emmm,看了下是ssl协商的问题,我把TLS1.0兼容性选上了,理论上应该ok了?

@windowBR
Copy link

windowBR commented Feb 8, 2023

面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/110554053/ failed, reason: Client network socket disconnected before secure TLS connection was established
    at ClientRequest.<anonymous> (file:///home/windowbr/Yunzai-Bot/node_modules/.pnpm/node-fetch@3.2.6/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:390:28)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: undefined
}

更新面板时出现了这样的错误,请问一些是什么情况,是本地服务器设置问题还是api负载过高 服务器是位于日本的Azure云服务器,系统为CentOS 7

emmm,看了下是ssl协商的问题,我把TLS1.0兼容性选上了,理论上应该ok了?

感谢帮助,没有问题了

@lzm654
Copy link

lzm654 commented Feb 9, 2023

enka能查到,但是机器人无法查询,提示请求失败,可能是面板服务升级维护或遇到故障,请稍后重试。b服账号,其他官服账号正常。
N O V$YIG(Q5Z2XYF6DI715

@ymxccccc
Copy link

Error: ENOENT: no such file or directory, open '/root/TRSS_Yunzai/Yunzai///data/UserData/197125319.json'
at Object.openSync (node:fs:585:3)
at Object.writeFileSync (node:fs:2229:35)
at Object.writeJSON (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/components/Data.js:59:15)
at Proxy.save (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:107:10)
at Proxy.reload (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:82:12)
at new Player (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:29:10)
at Player.create (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:47:20)
at cls.render (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/apps/profile/ProfileList.js:75:25)
at async cls. [as profileList] (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/components/App.js:93:16)
at async PluginsLoader.deal (file:///root/TRSS_Yunzai/Yunzai/lib/plugins/loader.js:251:52)
输入更新面板之后显示这个,而且机器人没有发信息

@simo8102
Copy link

Error: ENOENT: no such file or directory, open '/root/TRSS_Yunzai/Yunzai///data/UserData/197125319.json' at Object.openSync (node:fs:585:3) at Object.writeFileSync (node:fs:2229:35) at Object.writeJSON (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/components/Data.js:59:15) at Proxy.save (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:107:10) at Proxy.reload (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:82:12) at new Player (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:29:10) at Player.create (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/models/Player.js:47:20) at cls.render (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/apps/profile/ProfileList.js:75:25) at async cls. [as profileList] (file:///root/TRSS_Yunzai/Yunzai/plugins/miao-plugin/components/App.js:93:16) at async PluginsLoader.deal (file:///root/TRSS_Yunzai/Yunzai/lib/plugins/loader.js:251:52) 输入更新面板之后显示这个,而且机器人没有发信息

删除这个文件data/UserData/197125319.json

@B1ackSand
Copy link

B1ackSand commented Mar 6, 2023

Enka ReqErr: 504 Gateway Time-out 问题

由于我的服务器系香港阿里云,偶有出现以下的问题:

[YzBot][14:27:54.965][INFO] 加载定时任务[3个]
[YzBot][14:27:54.965][INFO] 加载插件完成[19个]
[YzBot][14:27:54.965][INFO] -----------
[YzBot][14:28:03.024][INFO] recv from: [Private: 84xxxx35(friend)] #更新面板190240207
[YzBot][14:28:03.099][MARK] [喵喵:角色面板][profileDetail][私聊][xxx(84xxxx335)] #更新面板190240207
[YzBot][14:28:03.102][MARK] [喵喵:角色面板][profileRefresh][私聊][xxx(84xxxx335)] #更新面板190240207
[YzBot][14:28:03.107][MARK] 【面板】190240207 :开始请求数据,面板服务:MiniGG-Api...
[YzBot][14:28:05.435][INFO] succeed to send: [Private(84xxxx335)] 开始获取uid:190240207的数据,可能会需要一定时间~
[YzBot][14:28:08.114][MARK] 【面板】190240207 :请求结束,请求用时5007ms,面板服务:MiniGG-Api...
Enka ReqErr: 504 Gateway Time-out
[YzBot][14:28:08.117][MARK] [喵喵:角色面板][profileRefresh] #更新面板190240207 处理完成 5014ms

这个问题会表现为我向BOT发送#更新面板190240207,BOT只会回复

开始获取uid:190240207的数据,可能会需要一定时间~

然后没有下文。

可能是港澳台或国外的服务器对profile.micro.gg的连通性不是很好,这个问题似乎是这周才出现的。如可以的话,大佬能够将国内UID默认重定向使用profile.micro.gg设置个开关吗?

暂时解决办法

我暂时的解决办法:在./plugins/miao-plugin/config/system/中修改profile_system.js,将其中L23 mggapi 中的url修改为url: 'https://enka.network/',,来取消重定向。

Enka.Network, at this moment, is configured to send all requests with user agent "MiaoPlugin/3.0" to microgg (CN server). Change the user-agent to something else to bypass the redirect.

在刚才文件里面修改UserAgent应当即可。

@Algoinde
Copy link
Contributor

Algoinde commented Mar 6, 2023

Enka.Network, at this moment, is configured to send all requests with user agent "MiaoPlugin/3.0" to microgg (CN server). Change the user-agent to something else to bypass the redirect.

@B1ackSand
Copy link

Enka.Network, at this moment, is configured to send all requests with user agent "MiaoPlugin/3.0" to microgg (CN server). Change the user-agent to something else to bypass the redirect.

okay tyvm for reminder.

@PENGMuyuan
Copy link

各位请教一下,这个文档里说明的是使用enka的时候会自动重定向到.cn的域名,我人在香港,enka可以很顺畅的进去,但是境内的这个域名进不去,请问如何取消这个默认的重定向呀
image

@PENGMuyuan
Copy link

Enka ReqErr: 504 Gateway Time-out 问题

由于我的服务器系香港阿里云,偶有出现以下的问题:

[YzBot][14:27:54.965][INFO] 加载定时任务[3个]
[YzBot][14:27:54.965][INFO] 加载插件完成[19个]
[YzBot][14:27:54.965][INFO] -----------
[YzBot][14:28:03.024][INFO] recv from: [Private: 84xxxx35(friend)] #更新面板190240207
[YzBot][14:28:03.099][MARK] [喵喵:角色面板][profileDetail][私聊][xxx(84xxxx335)] #更新面板190240207
[YzBot][14:28:03.102][MARK] [喵喵:角色面板][profileRefresh][私聊][xxx(84xxxx335)] #更新面板190240207
[YzBot][14:28:03.107][MARK] 【面板】190240207 :开始请求数据,面板服务:MiniGG-Api...
[YzBot][14:28:05.435][INFO] succeed to send: [Private(84xxxx335)] 开始获取uid:190240207的数据,可能会需要一定时间~
[YzBot][14:28:08.114][MARK] 【面板】190240207 :请求结束,请求用时5007ms,面板服务:MiniGG-Api...
Enka ReqErr: 504 Gateway Time-out
[YzBot][14:28:08.117][MARK] [喵喵:角色面板][profileRefresh] #更新面板190240207 处理完成 5014ms

这个问题会表现为我向BOT发送#更新面板190240207,BOT只会回复

开始获取uid:190240207的数据,可能会需要一定时间~

然后没有下文。

可能是港澳台或国外的服务器对profile.micro.gg的连通性不是很好,这个问题似乎是这周才出现的。如可以的话,大佬能够将国内UID默认重定向使用profile.micro.gg设置个开关吗?

暂时解决办法

我暂时的解决办法:在./plugins/miao-plugin/config/system/中修改profile_system.js,将其中L23 mggapi 中的url修改为url: 'https://enka.network/',,来取消重定向。

Enka.Network, at this moment, is configured to send all requests with user agent "MiaoPlugin/3.0" to microgg (CN server). Change the user-agent to something else to bypass the redirect.

在刚才文件里面修改UserAgent应当即可。

谢谢大佬,我也在境外,和你遇到的是同样的问题,那个查询没有下文的问题,你在cmd里面可以看到他的查询是504 Timeout状态,但是对于某些uid却查询成功

@jiut
Copy link
Contributor

jiut commented Mar 16, 2023

各位请教一下,这个文档里说明的是使用enka的时候会自动重定向到.cn的域名,我人在香港,enka可以很顺畅的进去,但是境内的这个域名进不去,请问如何取消这个默认的重定向呀 image

同样有这个问题

@ChaselDutt
Copy link

各位请教一下,这个文档里说明的是使用enka的时候会自动重定向到.cn的域名,我人在香港,enka可以很顺畅的进去,但是境内的这个域名进不去,请问如何取消这个默认的重定向呀 image

同样有这个问题

加个userAgent值为空就行,或者把profile_system.js里enka的userAgent设为空然后喵喵设置面板服务2就能生效

@MiniGrayGay
Copy link
Contributor

面板更新报错50x错误码的这个问题大概已经定位到了,大概率和我在CDN启用了GZip+Brotli压缩返回数据,并且为了响应速度加上了range协议头,但是服务器不兼容有关。晚点会处理一下

@114514xzx
Copy link

面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/158308116/ failed, reason: read ECONNRESET at ClientRequest. (file:///root/Yunzai
Bot/node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/index.js:108:11) at ClientRequest.emit (node:events:527:28) at TLSSocket.socketErrorListener (node:_http_client:454:9) at TLSSocket.emit (node:events:527:28) at emitErrorNT (node:internal/streams/destroy:164:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: 'read'
更新面板后不回复更新成功的图片,只会发送正在获取uidxxx的数据,后台报错如上

@cky008
Copy link

cky008 commented Mar 25, 2023

面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/158308116/ failed, reason: read ECONNRESET at ClientRequest. (file:///root/Yunzai Bot/node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/index.js:108:11) at ClientRequest.emit (node:events:527:28) at TLSSocket.socketErrorListener (node:_http_client:454:9) at TLSSocket.emit (node:events:527:28) at emitErrorNT (node:internal/streams/destroy:164:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET', erroredSysCall: 'read' 更新面板后不回复更新成功的图片,只会发送正在获取uidxxx的数据,后台报错如上

如果服务器在境外的话,可以翻下这个issue的历史记录,

把profile_system.js里enka的userAgent设为空然后喵喵设置面板服务2

这样就可以解决了 就是只使用enka的api 然后不设置代理

@Algoinde
Copy link
Contributor

Algoinde commented Nov 8, 2023

http://status.enka.network/
OS and CN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests