You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and to run my app, I use the following command
gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker main2:app
Each time my app uses the webscoket it get's the following
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 124, in handle
handler.handle()
File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line 184, in handle
result = self.handle_one_request()
File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line 321, in handle_one_request
self.handle_one_response()
File "/usr/local/lib/python2.7/dist-packages/socketio/handler.py", line 170, in handle_one_response
self.transport.do_exchange(socket, request_method)
File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 241, in do_exchange
websocket = self.handler.environ['wsgi.websocket']
KeyError: 'wsgi.websocket'
<Greenlet at 0x31dc050: <bound method SocketIOServer.handle of <SocketIOServer at 0x31c4410 fileno=5 address=127.0.0.1:8000>>(<socket at 0x31c4310 fileno=[Errno 9] Bad file des, ('127.0.0.1', 39100))> failed with KeyError
Can anyone please help and guide me out, I am totally new to this technology
The text was updated successfully, but these errors were encountered:
Hi developers
This my main.py
and the following is my nginx configuration
and to run my app, I use the following command
gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker main2:app
Each time my app uses the webscoket it get's the following
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 124, in handle
handler.handle()
File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line 184, in handle
result = self.handle_one_request()
File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line 321, in handle_one_request
self.handle_one_response()
File "/usr/local/lib/python2.7/dist-packages/socketio/handler.py", line 170, in handle_one_response
self.transport.do_exchange(socket, request_method)
File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 241, in do_exchange
websocket = self.handler.environ['wsgi.websocket']
KeyError: 'wsgi.websocket'
<Greenlet at 0x31dc050: <bound method SocketIOServer.handle of <SocketIOServer at 0x31c4410 fileno=5 address=127.0.0.1:8000>>(<socket at 0x31c4310 fileno=[Errno 9] Bad file des, ('127.0.0.1', 39100))> failed with KeyError
Can anyone please help and guide me out, I am totally new to this technology
The text was updated successfully, but these errors were encountered: