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
SocketIOServer running on 127.0.0.1:9000
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
GET http://localhost:9000/socket.io/xhr-polling//1407054935109 net::ERR_EMPTY_RESPONSE socket.io.js:653
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8c294213-8c48-4a9c-b0ac-0ed7b592c0e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment