Hi all, I'm relatively new to django, and trying to implement a basic proof-of-concept with django-socketio.
I saw this error in the app that I was writing, and only after a while banging my head against the wall, realized that it wasn't a problem in my code. The same error happens when running the example project. Following are the console errors, with the browser console errors at the end.
Can anyone point me in the right direction? I raised an issue on github and emailed the author of django-socketio, but he apparently can't help.
• [ThinkPad-R61:~/anan/git/anan/customer-web/django/example_project] antony (socketio) $ python /home/antony/virtualenvs/env1/lib/python2.7/site-packages/django
_socketio/example_project/manage.py runserver_socketio
FAILED to start flash policy server: [Errno 13] Permission denied: ('0.0.0.0', 843)
Traceback (most recent call last):
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../socketio/server.py", line 49, in handle
handler.handle()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/pywsgi.py", line 184, in handle
result = self.handle_one_request()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/pywsgi.py", line 321, in handle_one_request
self.handle_one_response()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../socketio/handler.py", line 58, in handle_one_response
self.handle_one_response(call_wsgi_app=False)
TypeError: handle_one_response() got an unexpected keyword argument 'call_wsgi_app'
>( failed with TypeError
127.0.0.1 - - [2014-08-03 03:35:15] "GET / HTTP/1.1" 200 1233 0.023364
127.0.0.1 - - [2014-08-03 03:35:16] "GET /static/css/chat.css HTTP/1.1" 200 900 0.007484
127.0.0.1 - - [2014-08-03 03:35:29] "GET /asdasd HTTP/1.1" 200 2761 0.013064
127.0.0.1 - - [2014-08-03 03:35:29] "GET /static/css/chat.css HTTP/1.1" 200 900 0.001331
127.0.0.1 - - [2014-08-03 03:35:29] "GET /static/js/socket.io.js HTTP/1.1" 200 64468 0.067194
127.0.0.1 - - [2014-08-03 03:35:29] "GET /static/js/chat.js HTTP/1.1" 200 3239 0.013320
Traceback (most recent call last):
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../socketio/server.py", line 49, in handle
handler.handle()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/pywsgi.py", line 184, in handle
result = self.handle_one_request()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../gevent/pywsgi.py", line 321, in handle_one_request
self.handle_one_response()
File "/home/antony/virtualenvs/env1/lib/python2.7/site-packages/django_socketio/example_project/../../socketio/handler.py", line 58, in handle_one_response
self.handle_one_response(call_wsgi_app=False)
TypeError: handle_one_response() got an unexpected keyword argument 'call_wsgi_app'
>( failed with TypeError
Browser errors:
WebSocket connection to 'ws://localhost:9000/
socket.io/websocket' failed: Connection closed before receiving a handshake response socket.io.js:395