Lately, we have a lot of errors logged, like this;
URIError: URI malformed
at decodeURIComponent (native)
at parse (/srv/node/stable/node_modules/express/node_modules/cookie/index.js:46:24)
at Array.forEach (native)
at Object.parse (/srv/node/stable/node_modules/express/node_modules/cookie/index.js:34:11)
This is related to a malformed cookie, being fed into decodeURIComponent of cookie middleware. I don't know the reason of the malformed cookie, nor argue that cookie middleware is broken.
I could replicate it by sending this header;
a console.warn would probably suffice
@visionmedia This issue can be closed now, since express v3.0.5 uses v.0.0.5 of the cookie module, where this is fixed. shtylman/node-cookie#8 has the details.