kcbanner/connect-mongo — Issue #30: Wrong dependency / versions|api change of connect causes error 
Author: philipp1982
Created: 2012-03-06 16:43:05+00:00
State: open

crypto.js:129
return (new Hmac).init(hmac, key);
^
TypeError: Not a string or buffer
at Object.createHmac (crypto.js:129:21)
at Object.sign (~/project/node_modules/connect-mongo/node_modules/connect/lib/utils.js:135:6)
at Object.serialize (~/project/node_modules/connect-mongo/node_modules/connect/lib/middleware/session/cookie.js:115:17)
at ServerResponse.writeHead (~/project/node_modules/express/node_modules/connect/lib/middleware/session.js:265:46)
at ServerResponse._implicitHeader (http.js:796:8)
at ServerResponse.end (http.js:653:10)
at ~/project/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js:73:19
at [object Object]. (fs.js:115:5)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1111:12)

Dependency in package.json should be:
"connect": ">=1.0.3 <2",
insetad of
"connect": ">=1.0.3",

Cheers,
Philipp