You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using version 6.1.3 and I seem to be receiving the following error when access a v7 redis cluster on aws.
TypeError: this.client.del is not a function
15|platform | at RedisStore.destroy (/home/ubuntu/sites/platform/node_modules/connect-redis/lib/connect-redis.js:84:19)
15|platform | at ServerResponse.end (/home/ubuntu/sites/platform/node_modules/express-session/index.js:310:15)
15|platform | at ServerResponse.send (/home/ubuntu/sites/platform/node_modules/express/lib/response.js:232:10)
15|platform | at ServerResponse.json (/home/ubuntu/sites/platform/node_modules/express/lib/response.js:278:15)
We were on a much older version of the npm and recently upgraded. Here my connection:
const redis = require("redis");
var RedisStore = require('connect-redis')(session);
const redisClient = redis.createClient({
url: `redis://${config.redis.host}:${config.redis.port}`,
legacyMode: true
});
var redisStore = new RedisStore({
client: redisClient.connect(),
logErrors: true,
});
The text was updated successfully, but these errors were encountered:
It seems you are passing the result of redisClient.connect() (which is a Promise) as the client value for the RedisStore. You would need to connect outside of creating the store, and pass use the redisClient as the client. E.g.
Using version 6.1.3 and I seem to be receiving the following error when access a v7 redis cluster on aws.
We were on a much older version of the npm and recently upgraded. Here my connection:
The text was updated successfully, but these errors were encountered: