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

new Websocket() - "an invalid or illegal string was specified" #80

Open
professorDante opened this issue Jun 16, 2015 · 1 comment
Open

Comments

@professorDante
Copy link

Getting this error when trying to view a chat room created from the chat app example. It's happening on line 395 of socket.io.js:

this.socket = new WebSocket(this._prepareUrl());

the url returned is a string which looks like:"ws://127.0.0.1:9/socket.io/websocket"

Running Django 1.4.18, django-socketio 0.3.9.
Is the port number wrong here? Shouldn't it be 9000?

Starting the socketIOserver through the command: sudo python manage.py runserver_socketio

@professorDante
Copy link
Author

OK, I've found the issue. If you have USE_THOUSAND_SEPARATOR = True in your settings, the port number set in DJANGO_SOCKETIO_PORT in the runserver_socket.py parses the port number as 9,000, not 9000, giving an incorrect port value.

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

1 participant