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

TypeError: Cannot read property 'split' of undefined #79

Open
binarykitchen opened this issue Jan 5, 2018 · 10 comments
Open

TypeError: Cannot read property 'split' of undefined #79

binarykitchen opened this issue Jan 5, 2018 · 10 comments

Comments

@binarykitchen
Copy link

TypeError: Cannot read property 'split' of undefined
   at Object.livereload [as handle] (/home/michael-heuberger/code/videomail-client/node_modules/connect-livereload/index.js:91:49)
   at next (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/proto.js:174:15)
   at Function.app.handle (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/proto.js:182:3)
   at Http2SecureServer.app (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/connect.js:67:37)
   at emitTwo (events.js:131:20)
   at Http2SecureServer.emit (events.js:214:7)
   at Http2SecureServer.onServerStream (internal/http2/compat.js:710:10)
   at emitMany (events.js:147:13)
   at Http2SecureServer.emit (events.js:224:7)
   at ServerHttp2Session.sessionOnStream (internal/http2/core.js:2304:17)

Using "gulp-connect": "5.2.0" here

@nickpape
Copy link

I am seeing this issue as well with Node 8, I found a potential workaround that seems to work. I'll link a PR shortly.

@mattpilott
Copy link

I'm seeing this on node 9 too, whats the workaround?

@terence1990
Copy link

terence1990 commented Feb 1, 2018

This is likely because of lack of http2 support, where the request sends authority header instead of host, the short term solution is to use up to node 8.1.2 and to uninstall the http2 module which causes gulp-connect to favour it, actual solution is to support http2 by pulling from the authority header instead of host

nitinhayaran added a commit to nitinhayaran/connect-livereload that referenced this issue Feb 9, 2018
bekicot added a commit to bekicot/gulp-connect that referenced this issue Apr 11, 2018
@rahul-desai3
Copy link

Still seeing this in Node 9.3, works on Node 8.3 though.

@binarykitchen
Copy link
Author

Any news on this old one? Still happening and it's a pain :(

@nasir-awan
Copy link

same issue with node version 10.12.0

@ksac1
Copy link

ksac1 commented Mar 28, 2019

What is the solution for the issue: TypeError: Cannot read property 'split' of undefined ?

@sergeymorkovkin
Copy link

Confirm.

@ksac1
Copy link

ksac1 commented Apr 15, 2019

@sergeymorkovkin : what is confirmed?

@sergeymorkovkin
Copy link

Tried to enable https and got this error. Using [email protected], [email protected] (even though it's marked deprecated).

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

8 participants