miao-plugin
miao-plugin copied to clipboard
关于面板更新失败
面板更新服务来自enka api
- 若更新持续失败请检查 bot所在的机器 能否正常访问enka。若无法访问请使用科学方法处理,或将bot部署在能够访问的云服务器上(例如腾讯云)
- enka服务可能偶发服务问题(例如查询500),一般会在2~6小时恢复,请等待enka服务恢复即可
- 其余情况可能偶发某个uid访问不稳定(例如网页能访问,但bot失败),可稍等后重试
- 游戏版本更新时服务需要进行适配,可能会停止服务更长时间,此为正常现象,耐心等待即可
国内网络如Enka服务访问不稳定,可尝试更换 @MiniGrayGay 大佬提供的中转服务
确保miao-plugin已经更新到最新的情况下, 复制config/profile_default.js
为config/profile.js
,修改其中enkaApi的url配置,配置完成后重启Bot即可生效
- 【链接1】:https://enka.microgg.cn/
- 【链接2】:https://enka.minigg.cn/
面板更新类issue可在此贴下讨论,其余issue进行关闭
我也是这样一直请求失败
自己电脑挂倒是可以
一直回复“请求失败:可能是面板服务并发过高,请稍后重试”
我自己用cf反代了https://enka.shinshin.moe/ 目录在\Yunzai-Bot\plugins\miao-plugin\components\profile-data\enka.js
我这里也是一直存在更新失败的问题,报错是
FetchError: request to https://enka.shinshin.moe/u/193355064/__data.json failed,
reason: read ECONNRESET
at ClientRequest.
FetchError: request to https://enka.shinshin.moe/u/163202620/__data.json failed, reason: read ECONNRESET
at ClientRequest.
enka那边上了安全产品只要超过一定频率就会被限制,再请求就返回403。enka经常出问题能否考虑开放miaomiao原来的那个接口服务自行部署,或者通过什么方式能获取?期望能拉下q群1011382654
enka那边上了安全产品只要超过一定频率就会被限制,再请求就返回403。enka经常出问题能否考虑开放miaomiao原来的那个接口服务自行部署,或者通过什么方式能获取?期望能拉下q群1011382654
插件最新的更新 有一个国内的api 我换成那个api更新挺快的 四五秒就查询出来了>.<
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.
- ~~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.~~
- ~~Please add a unique User-Agent header to this bot so I can detect them and increase the rate limit for the bot.~~
- Consider supporting me on Patreon if you can so I can keep this API running :)
- ~~World Tree support will come soon.~~ ✅
----------自动翻译----------
你好! Enka.Network 开发人员在这里。 由于自动机器人检测和大量请求,我从 Cloudflare 看到了很多 HTTP 403。
- ~~如果您经常使用 API,请在 Discord 上与我联系(如果您可以访问它)以请求可以让您绕过 Cloudflare 限制的 API 密钥。~~
- ~~请向该机器人添加一个唯一的 User-Agent 标头,以便我可以检测到它们并增加机器人的速率限制。~~
- 如果可以的话,考虑在 Patreon 上支持我,这样我就可以让这个 API 继续运行 :)
- ~~世界树支持即将到来。~~ ✅
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.
- 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.
- Please add a unique User-Agent header to this bot so I can detect them and increase the rate limit for the bot.
- Consider supporting me on Patreon if you can so I can keep this API running :)
- 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.
- 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.
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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 更新速度现在挺快的 大约四五秒就更新上了
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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是怎么改
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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改一下再重启一次机器人就行了
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
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用?
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用?
不太清楚 我这里用的那个国内服务的API是好用的
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用?
我和你一样欸。我变成并发过高了
#面板更新 的时候会直接回复”请求失败“ SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Response.json (file:///home/Yunzai-Bot/node_modules/[email protected]@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,现在更新面板显示服务器并发过高,请问是我的问题还是目前服务器无法使用?
我和你一样欸。我变成并发过高了
看来咱俩问题相同,就是不知道怎么解决了,我猜应该不是api的问题
This will allow me to increase ratelimits: #84
This will allow me to increase ratelimits: #84
更新之后可以正常使用了,非常感谢
同样的问题,Mark
~~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...
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,所以设置的反向代理服务器
确实我用了新的这个地址以后更新就特别快 几秒 直接用enka.network的话要等挺久,有时候也会请求失败。
~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!
#面板更新的时候会直接回复“请求失败” 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文件
Please use enka.microgg.cn
& enka.minigg.cn
to connect! We increased capacity.
https://github.com/yoimiya-kokomi/miao-plugin/blob/master/config/profile_default.js#L12
#面板更新的时候会直接回复“请求失败” 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 改一下再重启一次机器人就行了
这个方法是对的,换上后运行很快,感谢
enka服务如果打不开网址 是不是就不能请求了? 一般要多久能恢复正常