senchalabs/jsduck — Issue #147: Failure when using connect 2.0.2
Author: nene
Created: 2012-03-07 21:08:26+00:00
State: open

Comments server works with connect 1.8.5 but fails when upgraded to 2.0.2.

Error: connect.cookieParser("secret") required for security when using sessions
at Object.session [as handle] (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/connect/lib/middleware/session.js:211:28)
at next (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/http.js:203:15)
at Object.handle (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/app.js:64:9)
at next (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/http.js:203:15)
at Object.cookieParser [as handle] (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js:44:5)
at next (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/http.js:203:15)
at Object.handle (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/app.js:51:9)
at next (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/http.js:203:15)
at Object.handle (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/lib/http.js:83:5)
at next (/Users/renesaarsoo/work/jsduck/opt/comments-server-side/node_modules/express/node_modules/connect/lib/http.js:203:15)

This page seems to discuss the same problem: http://curtis.schlak.com/2012/01/11/get-to-know-flatiron.js-by-building-a-todo-app-story-1.html