shm-open / code-push-server

CodePush service is an app hot update service which is compatible with react-native-code-push and other CodePush clients
MIT License
191 stars 53 forks source link

[Redis] not support Redis Cluster #240

Open omegazeng opened 10 months ago

omegazeng commented 10 months ago

When I use Redis with Cluster Mode, I can not log in. The server can not parser the MOVED, and returns 500 Internal Server Error.

Error log:

17:50:14 0|--  | level=info, time=2024-01-04 17:50:14.566, msg=try login, path=/auth/login, method=POST, requestId=3f6fc8c56bbc84d009b3dbcf668a25b1, account=admin
17:50:14 0|--  | level=error, time=2024-01-04 17:50:14.608, msg=MOVED 5285 [x.y.z.42:6379](http://x.y.z.42:6379/), path=/auth/login, method=POST, requestId=3f6fc8c56bbc84d009b3dbcf668a25b1, name=ReplyError, stack=ReplyError: MOVED5285 [x.y.z.42:6379](http://x.y.z.42:6379/)
17:50:14 0|--  |     at parseError (/data/node_modules/redis-parser/lib/parser.js:179:12)
17:50:14 0|--  |     at parseType (/data/node_modules/redis-parser/lib/parser.js:302:14)

Package version: "redis": "4.2.0"