koajs / koa-redis

Redis storage for Koa session middleware/cache with Sentinel and Cluster support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot add property auth_pass, object is not extensible

wzkun opened this issue · comments

I meet this problem:'Error while starting up server TypeError: Cannot add property auth_pass, object is not extensible'.
And I use kod-redis like this:

import redisStore from 'koa-redis';

app.use(session({
prefix: "prefix",
ttl: 40000,
rolling: true,
store: redisStore({
"host": "192.168.199.189",
"port": 6379,
"db": 2
})
}));

Why this ticket closed without explanation? I am getting similar error
TypeError: Cannot add property password, object is not extensible at new RedisStore (/app/node_modules/koa-redis/lib/index.js:54:20) at RedisStore