maritz/nohm-admin

First bug :) Error: Can't set headers after they are sent.

Closed this issue · 2 comments

After pressing 'Login' button on fist page there is white screen in my browser (Chrome) an the following node's logs:

ErrorCan't set headers after they are sent.Error: Can't set headers after they are sent.
    at ServerResponse. (http.js:504:11)
    at ServerResponse.setHeader (/usr/local/lib/node/.npm/connect/1.2.1/package/lib/patch.js:44:20)
    at /usr/local/lib/node/.npm/connect/1.2.1/package/lib/middleware/errorHandler.js:72:19
    at [object Object]. (fs.js:86:5)
    at [object Object].emit (events.js:39:17)
    at afterRead (fs.js:882:12)

To restore application functionality I need to clear my browser's cache (mandatory) and restart application.

Thanks! This should be fixed in 8da7cd6.
Edit: Apparently that didn't fix it quite as I had hoped. Back to the drawing board.

Okay, actual fix for the exact problem you mentioned in 4081483. I had previously fixed all other occurrences of the same bug.