koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.37k stars 239 forks source link

Bug: 插件市场无法访问 #1175

Closed ymy139 closed 1 year ago

ymy139 commented 1 year ago

Describe the bug

无法使用插件商店(仍需更多数据验证)


Steps to reproduce

该问题在更换源后仍无法解决(尝试使用了官方源,淘宝源,南大源,浙大源) 查看后台日志发现有10条左右的超时提醒


Expected behavior

No response


Screenshots

插件市场提示: 微信图片_20230821132759 后台日志:

ymy139@raspberrypi:~/Servers/koishi $ sudo yarn start
yarn run v1.22.19
$ koishi start
2023-08-21 13:26:45 [I] app Koishi/4.14.1
2023-08-21 13:26:45 [I] app apply plugin group:entry
2023-08-21 13:26:45 [I] app apply plugin group:basic
2023-08-21 13:26:45 [I] app apply plugin commands
2023-08-21 13:26:45 [I] app apply plugin help
2023-08-21 13:26:45 [I] app apply plugin locales
2023-08-21 13:26:45 [I] app apply plugin rate-limit
2023-08-21 13:26:45 [I] app apply plugin group:console
2023-08-21 13:26:45 [I] app apply plugin analytics
2023-08-21 13:26:45 [I] app apply plugin config
2023-08-21 13:26:45 [I] app apply plugin console
2023-08-21 13:26:45 [I] app apply plugin dataview
2023-08-21 13:26:45 [I] app apply plugin explorer
2023-08-21 13:26:45 [I] app apply plugin logger
2023-08-21 13:26:45 [I] app apply plugin insight
2023-08-21 13:26:45 [I] app apply plugin market
2023-08-21 13:26:46 [I] app apply plugin sandbox
2023-08-21 13:26:46 [I] app apply plugin status
2023-08-21 13:26:46 [I] app apply plugin theme-vanilla
2023-08-21 13:26:46 [I] app apply plugin group:storage
2023-08-21 13:26:46 [I] app apply plugin database-sqlite
2023-08-21 13:26:46 [I] app apply plugin assets-local
2023-08-21 13:26:46 [I] app apply plugin group:adapter
2023-08-21 13:26:46 [I] app apply plugin gocqhttp
2023-08-21 13:26:46 [I] assets missing config "selfUrl", fallback to "file:" scheme
2023-08-21 13:26:46 [I] app server listening at http://127.0.0.1:5140
2023-08-21 13:26:47 [I] sqlite auto creating table user
2023-08-21 13:26:47 [I] sqlite auto creating table binding
2023-08-21 13:26:47 [I] sqlite auto creating table channel
2023-08-21 13:26:47 [I] sqlite auto creating table stats_daily
2023-08-21 13:26:47 [I] sqlite auto creating table stats_hourly
2023-08-21 13:26:47 [I] sqlite auto creating table stats_longterm
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:51 [W] market timeout of 5000ms exceeded
2023-08-21 13:26:52 [W] market Error: read ECONNRESET
                            at AxiosError.from (/home/ymy139/apps/koishi/app/node_modules/axios/dist/node/axios.cjs:836:14)
                            at RedirectableRequest.handleRequestError (/home/ymy139/apps/koishi/app/node_modules/axios/dist/node/axios.cjs:3010:25)
                            at RedirectableRequest.emit (node:events:526:35)
                            at eventHandlers.<computed> (/home/ymy139/apps/koishi/app/node_modules/follow-redirects/index.js:14:24)
                            at ClientRequest.emit (node:events:514:28)
                            at TLSSocket.socketErrorListener (node:_http_client:501:9)
                            at TLSSocket.emit (node:events:514:28)
                            at emitErrorNT (node:internal/streams/destroy:151:8)
                            at emitErrorCloseNT (node:internal/streams/destroy:116:3)
                            at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-08-21 13:26:52 [W] market Error: read ECONNRESET
                            at AxiosError.from (/home/ymy139/apps/koishi/app/node_modules/axios/dist/node/axios.cjs:836:14)
                            at RedirectableRequest.handleRequestError (/home/ymy139/apps/koishi/app/node_modules/axios/dist/node/axios.cjs:3010:25)
                            at RedirectableRequest.emit (node:events:526:35)
                            at eventHandlers.<computed> (/home/ymy139/apps/koishi/app/node_modules/follow-redirects/index.js:14:24)
                            at ClientRequest.emit (node:events:514:28)
                            at TLSSocket.socketErrorListener (node:_http_client:501:9)
                            at TLSSocket.emit (node:events:514:28)
                            at emitErrorNT (node:internal/streams/destroy:151:8)
                            at emitErrorCloseNT (node:internal/streams/destroy:116:3)
                            at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Versions


Additional context

No response

shigma commented 1 year ago

建议不同的问题分别提交 issue。如果你提的 issue 只包含一个问题,我就可以帮你 transfer 了。现在就只能你自己去其他仓库提交。

  1. 与本仓库无关,请前往 koishijs/koishi-desktop 仓库提交 issue。
  2. 与本仓库无关,请确认 go-cqhttp 是否支持你的平台:如果支持,请前往 koishijs/koishi-plugin-gocqhttp 仓库提交 issue;如果不支持,请前往 mrs4s/go-cqhttp 仓库提交 issue。
  3. 我可以肯定地告诉你与架构无关。请在本 issue 中进行回复,提供你的 market 插件配置项 (我不知道你是如何设置的镜像)。
ymy139 commented 1 year ago

已修改issue 以下为market插件配置项:

registry.endpoint = https://registry.npmmirror.com
registry.timeout = 5000
search.endpoint = https://registry.koishi.chat/index.json
search.timeout = 30000
search.proxyAgent = *None*
shigma commented 1 year ago

那看起来你更换的源指的是 registry.endpoint 而非 search.endpoint。图中的报错与后者相关。

请更换更好的网络环境,或者在论坛中搜索第三方的插件市场镜像。

ymy139 commented 1 year ago

在更换 search.endpoint 为 https://registry.koishi.t4wefan.pub/index.json 后即可正常使用插件市场。