django-socketio icon indicating copy to clipboard operation
django-socketio copied to clipboard

No loading app events silenced

Open zodman opened this issue 12 years ago • 1 comments

"Errors should never pass silently"

https://github.com/stephenmcd/django-socketio/blob/master/django_socketio/urls.py#L11

Plz put after

SocketIOServer running on 0.0.0.0:8080 Events loaded from apps: ,

Because i seen the socket recived but no the response, I pass a day searching why not send the data.

And i seen the reason of the import error was silenced.

zodman avatar Dec 01 '13 03:12 zodman

Hey, I am running into the same issue.

Basically, the "no response" reason is because the views.py always return HttpResponse(""), even if the except code block is executed, which was my case.

Try to comment this except thing, and you'll then get a request.environ['socketio'] key missing. Now I need to figure out how to inject this missing key, though I have absolutely no idea how to do so, considering the complexity of the gevent-socketio handler stack.

valeriansaliou avatar Mar 03 '14 09:03 valeriansaliou