rap2 koa-generic-session报错-TypeError: Cannot set property name of which has only a getter
作者:互联网
rap2后端服务无法启动,多次重启失败
0|rap-server-delos | TypeError: Cannot set property name of which has only a getter
0|rap-server-delos | at defaultErrorHanlder (/opt/rap2/rap2-delos/node_modules/koa-generic-session/lib/session.js:558:12)
0|rap-server-delos | at /opt/rap2/rap2-delos/node_modules/koa-generic-session/lib/session.js:193:9
0|rap-server-delos | at Generator.throw (<anonymous>)
0|rap-server-delos | at step (/opt/rap2/rap2-delos/node_modules/koa-generic-session/lib/session.js:3:191)
0|rap-server-delos | at /opt/rap2/rap2-delos/node_modules/koa-generic-session/lib/session.js:3:402
0|rap-server-delos | at process._tickCallback (internal/process/next_tick.js:68:7)
解决:重新启动 redis
ubuntu:
停止: /etc/init.d/redis-server stop
启动: /etc/init.d/redis-server start
centos:
启动:systemctl start redis
停止:systemctl stop redis
标签:session,set,delos,rap2,server,koa,TypeError,报错,rap 来源: https://www.cnblogs.com/-E3-/p/13451426.html