KiwiIRC
KiwiIRC copied to clipboard
Crash on start-up
With the latest git commit, I am running into a crash on start-up. The crash happens due to an error thrown from file
node_modules/spdy/node_modules/http-deceiver/lib/deceiver.js
on line 25. The line reads:
HTTPParser.methods.forEach(function(method, index) { reverseMethods[method] = index; });
The function call crashes because it reports the "forEach" set is undefined. Commenting out the above line avoids the crash and allows KiwiIRC to start.
I am running Node 6.3.1 on FreeBSD 10.3 with npm 3.8.8 installed. I am running the KiwiIRC master branch, using the commit from March 31, 2016.
The complete traceback from running "kiwi start" without the above change, for anyone who wants it, is as follows:
Starting kiwiirc daemon... /usr/home/kiwi/KiwiIRC/node_modules/daemonize2/lib/daemonize.js:136 throw new Error(msg.error); ^
Error: TypeError: Cannot read property 'forEach' of undefined
at Object.
Commenting out that line really helped, I wasnt getting the error till after I updated nodeJS. Thanks for the update!
I know this is really old, but I just came across it after a nodejs upgrade on an old install. The spdy package version in package.json is still 2.0.5 Using latest works and avoids this error. I know this version of the product is EOL. but all the same.. we could fix this, no?
EDIT: Given the number of open PR and Issues here, I'm taking it as abandoned and will not submit a PR for this. In the outside case that you happen to come across the same thing, consider editing package.json to use a later version of spdy rather than commenting out the line as @silentziler suggests.