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

'headers' of undefined error #184

Open
skysea opened this issue Jun 20, 2017 · 10 comments
Open

'headers' of undefined error #184

skysea opened this issue Jun 20, 2017 · 10 comments

Comments

@skysea
Copy link

skysea commented Jun 20, 2017

adsiz

Hi I am getting the error in the picture can you help

@nitronaj
Copy link

It because latest node ws module removes the upgradeReq property from the WebSocket object
websockets/ws#1099

@JaraLowell
Copy link
Owner

Yah seems new node did an update to upgradeReq, this is used in our client to pinpoint origen etc, down side is, it not revere compatible, so it either go full new node, or stay with an older one till it more ironed out.

@skysea
Copy link
Author

skysea commented Jun 23, 2017

Thank you for answer.
Nodejs which version I use

@JaraLowell
Copy link
Owner

i use 7.4.0

@skysea
Copy link
Author

skysea commented Jun 23, 2017

Nodejs version 7.4.0 has the same error

@JaraLowell
Copy link
Owner

Node.js v7.4.0 (linux x64)
Chrome's V8 JavaScript engine v5.4.500.45

is what i run

@skysea
Copy link
Author

skysea commented Jun 23, 2017

I will also try 7.0.0. :)

@skysea
Copy link
Author

skysea commented Jun 23, 2017

adsiz

7.0.0 version The same error again

@JaraLowell
Copy link
Owner

you forgetting to remove and re get the ws modules, meaning only changing the node not downgrades the modules installed. remove the modules folder and re get them once older version of node is installed.

@skysea
Copy link
Author

skysea commented Jun 23, 2017

i solved this problem like this,
npm remove ws
npm install ws@2.x

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