koishijs / koishijs/cache

启用cache-redis插件后导致koishi崩溃

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

崩溃日志:
```
2025-11-02 13:09:41 [E] app Error: Socket closed unexpectedly
at Socket. (/koishi/node_modules/@redis/client/dist/lib/client/socket.js:194:118)
at Object.onceWrapper (node:events:634:26)
at Socket.emit (node:events:519:28)
at TCP. (node:net:339:12)
```
环境:
redis:7.4.6(docker,1panel)
koishijs/koishi:v1.15.0(docker,1panel)
cache-redis:2.1.3

Contributor guide

No contributing guide indexed for this repository

Research direction

The report names cache-redis 2.1.3 and the Redis client socket at node_modules/@redis/client/dist/lib/client/socket.js:194. First reproduce the crash with Redis 7.4.6 and Koishi v1.15.0 in the listed Docker setup, then trace the socket-close path; done means enabling the plugin no longer crashes Koishi under the reported conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, typescript
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.