stephenmcd / django-socketio

WebSockets for Django
BSD 2-Clause "Simplified" License
1.32k stars 244 forks source link

KeyError ("socketio" not in request environment) #81

Closed alexandervlpl closed 9 years ago

alexandervlpl commented 9 years ago

Installed as documented. Looks like the application expects a socket handler in the request environment, and it's just not there. In django_socketio/views.py:

socket = SocketIOChannelProxy(request.environ["socketio"])

All socket.io requests cause 500 errors when running the example chat application. My setup: Ubuntu 14.04 LTS. Installed latest python-dev and libevent-dev.

Python: Django==1.8.4 django-socketio==0.3.9 gevent-socketio==0.3.6 gevent-websocket==0.9.5

Maybe the application needs an older version of gevent-socketio? Did I miss something here?

muhammadfarizarya commented 8 years ago

it has fixed? @alexandervlpl , In my case give the exact errors