question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught ReferenceError: __jsonp3__ is not defined

See original GitHub issue

Getting thrown these two errors (together) from the front end client. I’m using google chrome, although seem to also get it from safari.

Uncaught ReferenceError: __jsonp3__ is not defined 
faye.getstream.io/faye?message=%5B%7B%22channel%22%3A%22%2Fmeta%2Fconnect%2…%22%3A%22callback-polling%22%2C%22id%22%3A%224%22%7D%5D&jsonp=__jsonp3__:1 

getstream.js:4234 WebSocket is already in CLOSING or CLOSED state.
(anonymous function) @ getstream.js:4234
(anonymous function) @ getstream.js:2621
_invoke @ getstream.js:2297
(anonymous function) @ getstream.js:2290
onNextTick @ getstream.js:4697
Item.run @ getstream.js:178
drainQueue @ getstream.js:148

The WebSocket error seems to be recoverable and happens quite often, but the ReferenceError is a bit more a problem since it crashes hard and happens unpredictably. Any ideas what this could be?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tschellenbachcommented, Dec 12, 2017

For future reference, if you run into this issue it’s caused by instantiating multiple versions of the Faye or Stream client. You need to make sure your application is using 1 stream client and not multiple.

0reactions
beau6183commented, Dec 12, 2017

Thanks again for the help today!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught ReferenceError: $ is not defined? - Stack Overflow
Show activity on this post. The most common reason behind the error "Uncaught ReferenceError: $ is not defined" is executing the jQuery code...
Read more >
ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >
Uncaught ReferenceError: $ is not defined
Uncaught ReferenceError : $ is not defined: This usually indicates that jQuery is not loaded and JavaScript does not recognize $. Even with...
Read more >
Uncaught ReferenceError: jQuery is not defined at
Hi @bitcoincasino666,. The jQuery should be included by default with WordPress. Check if you are using any plugin that removes the official jQuery...
Read more >
How to fix "Uncaught ReferenceError: x is not defined" in ...
JS Casts 04 - How to fix " Uncaught TypeError: x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/04 for a summary ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found