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

Uncaught TypeError: Cannot read property 'host' of undefined #49

Closed
tommoor opened this issue Oct 10, 2013 · 3 comments
Closed

Uncaught TypeError: Cannot read property 'host' of undefined #49

tommoor opened this issue Oct 10, 2013 · 3 comments

Comments

@tommoor
Copy link

tommoor commented Oct 10, 2013

I'm seeing this regularly with the latest client (v2.1.2) - it happens when a client becomes disconnected from the internet and seems to be something to do with the JSONP fallback.

Definitely an annoying issue that's filling our server side JS logs. As it appears in the client:

screenshot 2013-10-10 11 48 28

@adamyeats-zz
Copy link

@tommoor The library throws this error whenever it's unable to connect to our stats aggregation server, e.g. when connectivity is patchy. @pl: am I right in saying a workaround for this would be to set disableStats to true?

@pl
Copy link
Contributor

pl commented Oct 15, 2013

Hi,

Can you check version 2.1.3-pre? It should fix the problem, though "failed to load resource" won't go away, since these are JSONP requests to our metric aggregation servers. You can also disable stats by passing the disableStats flag, as Adam mentioned, but we'd appreciate if you kept them on, as it helps us troubleshoot issues and understand client behaviour.

@pl
Copy link
Contributor

pl commented Nov 5, 2013

Solved in 2.1.3.

@pl pl closed this as completed Nov 5, 2013
btakita pushed a commit to btakita/pusher-js that referenced this issue Dec 8, 2013
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