Crash issue? #39

Closed
Charuru opened this Issue Jun 1, 2012 · 3 comments

Comments

Projects
None yet
4 participants
@Charuru

Charuru commented Jun 1, 2012

I have a crash issue:

/home/ubuntu/www/node_modules/mongodb/lib/mongodb/connection/server.js:353
        throw err;
              ^
Error: Cannot write after end
    at Gzip.write (zlib.js:316:31)
    at ServerResponse.write (/home/ubuntu/www/node_modules/express/node_modules/connect/lib/middleware/compress.js:84:18)
    at ServerResponse.end (/home/ubuntu/www/node_modules/express/node_modules/connect/lib/middleware/compress.js:89:23)
    at /home/ubuntu/www/node_modules/express/node_modules/connect/lib/middleware/session.js:256:13
    at /home/ubuntu/www/node_modules/connect-mongo/lib/connect-mongo.js:201:25
    at [object Object].<anonymous> (/home/ubuntu/www/node_modules/mongodb/lib/mongodb/collection.js:424:9)
    at [object Object].g (events.js:156:14)
    at [object Object].emit (events.js:88:20)
    at Db._callHandler (/home/ubuntu/www/node_modules/mongodb/lib/mongodb/db.js:1197:25)
    at /home/ubuntu/www/node_modules/mongodb/lib/mongodb/connection/server.js:346:30

I am using express 3. But this issue can be fixed by putting a try catch around line 201 as indicated by the debug.

@lazd

This comment has been minimized.

Show comment Hide comment
@lazd

lazd Mar 28, 2013

Contributor

Is this still an issue in the latest connect-mongo? Please try to reproduce it and close this issue if you are unable. Thanks!

Contributor

lazd commented Mar 28, 2013

Is this still an issue in the latest connect-mongo? Please try to reproduce it and close this issue if you are unable. Thanks!

@sammy-SC

This comment has been minimized.

Show comment Hide comment
@sammy-SC

sammy-SC Sep 24, 2013

hello, i have the most recent version connect-mongo@0.3.3 and i still get the error, try with try and catch fixed the problem.

hello, i have the most recent version connect-mongo@0.3.3 and i still get the error, try with try and catch fixed the problem.

@jdesboeufs

This comment has been minimized.

Show comment Hide comment
@jdesboeufs

jdesboeufs Dec 17, 2014

Owner

I close this issue.
I can re-open it if needed.

Owner

jdesboeufs commented Dec 17, 2014

I close this issue.
I can re-open it if needed.

@jdesboeufs jdesboeufs closed this Dec 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment