Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot set property name of which has only a getter at defaultErrorHanlder #66

Open
smz8023 opened this issue Nov 22, 2019 · 3 comments

Comments

@smz8023
Copy link

smz8023 commented Nov 22, 2019

在使用该插件时:TypeError: Cannot set property name of which has only a getter
at defaultErrorHanlder

@smz8023
Copy link
Author

smz8023 commented Nov 22, 2019

app.keys = ['SD123ui_sd$@'];
app.use(session({
key: 'weibo.sid', // cookie name 默认是 koa.sid
prefix: 'weibo:sess:', // redis key 的前缀,默认是 koa:sess:
cookie: {
path: '/',
httpOnly: true,
maxAge: 24 * 60 * 60 * 1000 // 单位 ms
},
store: redisStore({
all: ${redisConfig.host}:${redisConfig.port}
})
}))

@Vimalate
Copy link

遇到同样问题,请问怎么解决的

@whorusq
Copy link

whorusq commented Jun 16, 2020

  store: redisStore({
    // all: '127.0.0.1:56379'
    host: '127.0.0.1',
    port: '56379'
  })

--
resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants