郁闷的不行。一下午了,一个路由转发,调试不明白。
发布于 3天前 作者 55345249 226 次浏览 来自 问答

郁闷的不行。一下午了,一个路由转发,调试不明白。

================================================================= [root@localhost ~]# curl http://localhost:3000 curl: (52) Empty reply from server [root@localhost ~]#

======================================================================

/app/myblog/node_modules/express-session/node_modules/cookie-signature/index.js:18 if (‘string’ != typeof secret) throw new TypeError(‘secret required’); ^ TypeError: secret required at Object.exports.sign (/app/myblog/node_modules/express-session/node_modules/cookie-signature/index.js:18:40) at setcookie (/app/myblog/node_modules/express-session/index.js:481:33) at ServerResponse.<anonymous> (/app/myblog/node_modules/express-session/index.js:179:7) at ServerResponse.writeHead (/app/myblog/node_modules/express-session/node_modules/on-headers/index.js:46:16) at ServerResponse._implicitHeader (http.js:1134:8) at ServerResponse.OutgoingMessage.write (http.js:842:10) at writetop (/app/myblog/node_modules/express-session/index.js:226:26) at ServerResponse.end (/app/myblog/node_modules/express-session/index.js:272:16) at Array.write [as 0] (/app/myblog/node_modules/express/node_modules/finalhandler/index.js:137:9) at listener (/app/myblog/node_modules/express/node_modules/on-finished/index.js:169:15)

=======================================================
2 回复

哎!!!!!!!!

回到顶部