Skip to content

feat(market): add startup delay option#363

Open
magisk317 wants to merge 1 commit intokoishijs:mainfrom
magisk317:fix/market-delay-option
Open

feat(market): add startup delay option#363
magisk317 wants to merge 1 commit intokoishijs:mainfrom
magisk317:fix/market-delay-option

Conversation

@magisk317
Copy link

@magisk317 magisk317 commented Nov 17, 2025

部分镜像源插件,如 storeluna ,在重启时没有market起的快(前后大概差几秒),导致market插件报错,希望通过给market增加延时选项,来规避此问题(用户可选开启)

2025-11-17 15:14:26 [I] loader apply plugin group:cron
2025-11-17 15:14:26 [I] loader apply plugin cron:zjw6ju
2025-11-17 15:14:26 [I] loader apply plugin group:nqn4w8
2025-11-17 15:14:26 [I] loader apply plugin lmarena:7ostab
2025-11-17 15:14:26 [I] loader apply plugin worldnews:i2lm39
2025-11-17 15:14:26 [I] pow cache init 300000
2025-11-17 15:14:27 [I] puppeteer chrome executable found at /usr/bin/chromium
2025-11-17 15:14:27 [I] server server listening at http://0.0.0.0:5140
2025-11-17 15:14:27 [I] console webui is available at http://127.0.0.1:5140
2025-11-17 15:14:27 [W] market SocketError: other side closed
                            at Socket.onHttpSocketEnd (/koishi/node_modules/cheerio/node_modules/undici/lib/dispatcher/client-h1.js:904:22)
                            at Socket.emit (node:events:531:35)
                            at endReadableNT (node:internal/streams/readable:1696:12)
                            at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2025-11-17 15:14:27 [W] market TypeError: fetch failed
                            at node:internal/deps/undici/undici:13178:13
                            at async [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:325:19)
                            at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:178:26)
                            at async MarketProvider.collect (/koishi/node_modules/@koishijs/plugin-market/lib/node/index.js:378:22)
                            at async MarketProvider.start (/koishi/node_modules/@koishijs/plugin-market/lib/node/index.js:369:5)
                            at async /koishi/node_modules/@cordisjs/core/lib/index.cjs:1213:7
2025-11-17 15:14:27 [W] market Error: fetch http://x.x.x.x:5140/storeluna/index.json failed
                            at /koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:327:23
                            at async [cordis.invoke] (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:325:19)
                            at async Proxy.<anonymous> (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:178:26)
                            at async MarketProvider.collect (/koishi/node_modules/@koishijs/plugin-market/lib/node/index.js:378:22)
                            at async MarketProvider.start (/koishi/node_modules/@koishijs/plugin-market/lib/node/index.js:369:5)
                            at async /koishi/node_modules/@cordisjs/core/lib/index.cjs:1213:7

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

Successfully merging this pull request may close these issues.

1 participant