I’ve updated all my npm packages, including redis (3.1.2 → 4.3.1 ) and redis connect(6.0.0 → 6.1.3).
I’m getting the following error:
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: The client is closed
at Commander._RedisClient_sendCommand (/opt/node_app/node_modules/@redis/client/dist/lib/client/index.js:415:31)
at Commander.commandsExecutor (/opt/node_app/node_modules/@redis/client/dist/lib/client/index.js:170:154)
at Commander.BaseClass.<computed> [as get] (/opt/node_app/node_modules/@redis/client/dist/lib/commander.js:8:29)
at RedisStore.get (/opt/node_app/node_modules/connect-redis/lib/connect-redis.js:33:19)
at session (/opt/node_app/node_modules/express-session/index.js:485:11)
at Layer.handle [as handle_request] (/opt/node_app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/opt/node_app/node_modules/express/lib/router/index.js:328:13)
at /opt/node_app/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/opt/node_app/node_modules/express/lib/router/index.js:346:12)
at Function.process_params (/opt/node_app/node_modules/@sentry/tracing/cjs/integrations/node/express.js:266:34)
This seems to be caused completely by updating redis. There’s something in the code that isn’t ready for the updated version?
I’ve tried downgrading the connect-redis again, that didn’t work. Same error.
Then I downgraded redis as well, back to 3.1.2 and that got rid of the error.
Community Page
Last updated:
Last updated: