mnutt / hummingbird

Real time web analytics using node.js and web sockets
http://mnutt.github.com/hummingbird
MIT License
2.92k stars 15 forks source link

Crash report #19

Closed malard closed 12 years ago

malard commented 13 years ago

Lost ws client 25 Jan 18:48:53 - Client 6507126223295927 disconnected

http:572 var statusLine = "HTTP/1.1 " + statusCode.toString() + " " ^ TypeError: Cannot call method 'toString' of null at ServerResponse.writeHead (http:572:45) at [object Object].finish (/usr/local/lib/node/.npm/node-static/0.5.2/package/lib/node-static.js:108:17) at /usr/local/lib/node/.npm/node-static/0.5.2/package/lib/node-static.js:165:14 at /usr/local/lib/node/.npm/node-static/0.5.2/package/lib/node-static.js:215:33 at [object Object]. (/usr/local/lib/node/.npm/node-static/0.5.2/package/lib/node-static.js:245:17) at [object Object].emit (events:31:17) at fs:655:12 at node.js:773:9

mnutt commented 13 years ago

Tracked it down to a bug in node-static.

Issue reported here: https://github.com/cloudhead/node-static/issues#issue/6

Somebody submitted a pull request with a fix here: https://github.com/nikhilm/node-static/commit/da628242b6ec996f09924c270aee7bfe212410a3

Unfortunately npm doesn't support pointing to a github commit so I'm not sure of the proper way to get this fixed. But as soon as they release a new version I'll upgrade the dependencies.

mnutt commented 12 years ago

This was fixed with a newer version of node-static.