miao-plugin
miao-plugin copied to clipboard
喵喵设置面板服务不起作用
设置完后还是走microgg
和你一样,而且microgg更新会504 临时解决方案 ./plugins/miao-plugin/config/system/profile_system.js
export const enkaApi = {
url: 'https://enka.network/',
// userAgent: 'Miao-Plugin/3.1',
//下一行改空
userAgent: '',
listApi: ({ url, uid, diyCfg }) => {
return `${url}api/uid/${uid}/`
}
}
这里enka报错
面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/264404369/ failed, reason: unable to verify the first certificate 0|Yunzai-B | at ClientRequest.
(file:///root/Yunzai-Bot/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11) 0|Yunzai-B | at ClientRequest.emit (node:events:513:28) 0|Yunzai-B | at TLSSocket.socketErrorListener (node:_http_client:490:9) 0|Yunzai-B | at TLSSocket.emit (node:events:513:28) 0|Yunzai-B | at emitErrorNT (node:internal/streams/destroy:151:8) 0|Yunzai-B | at emitErrorCloseNT (node:internal/streams/destroy:116:3) 0|Yunzai-B | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 0|Yunzai-B | type: 'system', 0|Yunzai-B | errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', 0|Yunzai-B | code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', 0|Yunzai-B | erroredSysCall: undefined 0|Yunzai-B | }
minigg报错 Enka ReqErr: 504 Gateway Time-out,按你的方法解决了(应该),多谢
这个问题大概已经定位到了,大概率和我在CDN启用了GZip+Brotli压缩返回数据,并且为了响应速度加上了range协议头有关。晚点会处理一下
+1 在喵喵设置中哪怕调整为了 enka,实际上还是会走灰佬的 microgg,而且看起来从海外访问会出现SSL错误