{"issue":{"state":"open","created_at":"2011-10-28T07:11:58Z","updated_at":"2011-11-23T18:20:44Z","comments":22,"user":{"gravatar_id":"6fae6f510547bc871de7a35e4af07d9b","id":512,"url":"https://api.github.com/users/japj","login":"japj","avatar_url":"https://secure.gravatar.com/avatar/6fae6f510547bc871de7a35e4af07d9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi,\r\n\r\nI am using nodejs 0.5.10 on Windows, using nano 0.8.4 to connect to a couchdb (1.0.2) database.\r\n\r\nThis night my program failed with the following notice:\r\n<pre>\r\nnode.js:202\r\n        throw e; // process.nextTick error, or 'error' event on first tick\r\n              ^\r\nError: Parse Error\r\n    at Socket.ondata (http.js:1116:24)\r\n    at TCP.onread (net.js:314:27)\r\n</pre>\r\n\r\nIt is a bit difficult to relate, but around the same time the nodejs program threw an exception I see a '500' error in the couchdb logging. Maybe that is related?","assignee":null,"id":2076244,"number":1956,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"http","color":"e10c02","url":"https://api.github.com/repos/joyent/node/labels/http"}],"title":"Parse Error in http.js","closed_at":null,"html_url":"https://github.com/joyent/node/issues/1956","milestone":null,"url":"https://api.github.com/repos/joyent/node/issues/1956"},"action":"created","comment":{"created_at":"2011-11-23T18:20:44Z","updated_at":"2011-11-23T18:20:44Z","user":{"gravatar_id":"d5f5c23b5f5164574107209453320b5b","id":1205661,"url":"https://api.github.com/users/jamespeerless","login":"jamespeerless","avatar_url":"https://secure.gravatar.com/avatar/d5f5c23b5f5164574107209453320b5b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"In my case it's a bug with mikeal's request module. It looks like it's a race condition.  It's a race between the error handler getting setup and the response returning (or emitting an error).  Not entirely sure I am right but that's what it seems like. I'll update my issue on mikeal's request github.    ","id":2852517,"url":"https://api.github.com/repos/joyent/node/issues/comments/2852517"}}