Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Node v0.12.4 and http.parsers undefined #5

Open
anthony-ngu opened this issue May 26, 2015 · 3 comments
Open

Using Node v0.12.4 and http.parsers undefined #5

anthony-ngu opened this issue May 26, 2015 · 3 comments

Comments

@anthony-ngu
Copy link

This only started popping up after I updated my Nodejs version to the latest. (The previous version I was using where it worked was v0.10.28)

The error is shown in upnp.js inside the _initParsers function on the line that calls
self.requestParser = http.parsers.alloc();

@anthony-ngu anthony-ngu changed the title Using Node v0.12.4 and http.parsers.alloc() undefined Using Node v0.12.4 and http.parsers undefined May 26, 2015
@jdevelvis
Copy link

I'm getting this one too, "node -v" shows v4.1.1

self.requestParser = http.parsers.alloc(); ^ TypeError: Cannot read property 'alloc' of undefined

Anyone find a fix yet? I found one fix suggestion on Google, implemented it, and still got the error.
(This one - jacobrask/node-upnp-device#11 (comment))

@willelmes
Copy link

I updated my debian machine tonight and began receiving this same error. I am using this within a wrapper class I wrote to fit in my own home HA system that includes a single wemo. Gone over my own (very simple) code to no avail. node -v shows v4.2.2 Any suggestions?

@anthony-ngu
Copy link
Author

Sorry, I never looked this up again. I would use NVM to allow you to choose between different node versions http://blog.anthonyngu.com/2015/05/27/nvm-your-node-js-friend/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants