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

Websocket Open callback exception: Uncaught TypeError: Cannot read property 'length' of null #229

Open
dreamershl opened this issue Dec 5, 2017 · 2 comments

Comments

@dreamershl
Copy link

dreamershl commented Dec 5, 2017

In the websocket onOpen callback, strangely, the message is null instead of ''

  atmosphere.js:2884 Uncaught TypeError: Cannot read property 'length' of null
         at _invokeCallback (atmosphere.js:2884)
         at _open (atmosphere.js:1041)
         at WebSocket._websocket.onopen (atmosphere.js:1426)
  _invokeCallback @ atmosphere.js:2884
  _open @ atmosphere.js:1041
 _websocket.onopen @ atmosphere.js:1426

image

@jfarcand
Copy link
Member

@dreamershl Any idea? How do you reproduce it?

@dreamershl
Copy link
Author

don't understand it too. it happens quite often. My system will do the following after clicking the login button

  1. cancel all the previous request
  2. create a new one
  3. connect to the server
  4. send login request

This often happens in the second click. I suspect the first step, cancelling all previous request, may be the reason for this issue.

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

2 participants