AttributeError: 'Socket' object has no attribute 'session' on trying to make a websocket request

180 views
Skip to first unread message

lovesh harchandani

unread,
Oct 29, 2013, 9:11:19 AM10/29/13
to gevent-...@googlegroups.com
I tried to use the simple chat example at https://github.com/abourget/gevent-socketio/tree/master/examples/simple_chat

I am able to open the chat.html and the first request 


completes but when i enter a nickname and press enter, the request

is always pending and i start seeing this error on console

self.socket.session['nickname'] = nickname
AttributeError: 'Socket' object has no attribute 'session'
<Greenlet at 0x9c756bc: <bound method Socket._receiver_loop of <socketio.virtsocket.Socket object at 0x9c7984c>>> failed with AttributeError

But got same error in console
self.socket.session['nickname'] = nickname
AttributeError: 'Socket' object has no attribute 'session'
<Greenlet at 0x9c756bc: <bound method Socket._receiver_loop of <socketio.virtsocket.Socket object at 0x9c7984c>>> failed with AttributeError

How can i resolve this?

Daniele Brugnara

unread,
Nov 26, 2013, 4:08:50 AM11/26/13
to gevent-...@googlegroups.com
I'm having this issue too.
Reply all
Reply to author
Forward
0 new messages