response_headers_list and call_wsgi_app help

48 views
Skip to first unread message

Recep Ali AY

unread,
Nov 17, 2014, 7:02:48 PM11/17/14
to gevent-...@googlegroups.com
Hi,
My english is very bad. Sorry.
I get the following error.

thank you.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SocketIOServer running on 127.0.0.1:9000

Traceback (most recent call last):
  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 49, 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 68, in handle_one_response
    jobs = self.transport.connect(session, request_method)
  File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 92, in connect
    self.write_packed(session_id)
  File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 19, in write_packed
    self.write(data)
  File "/usr/local/lib/python2.7/dist-packages/socketio/transports.py", line 22, in write
    if 'Content-Length' not in self.handler.response_headers_list:
AttributeError: 'SocketIOHandler' object has no attribute 'response_headers_list'
<Greenlet at 0x7f76c4b95050: <bound method SocketIOServer.handle of <SocketIOServer at 0x7f76c60dc490 fileno=5 address=127.0.0.1:9000>>(<socket at 0x7f76c4b92210 fileno=[Errno 9] Bad fil, ('127.0.0.1', 59265))> failed with AttributeError

Traceback (most recent call last):
  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 49, 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 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'
<Greenlet at 0x7f76c4b95050: <bound method SocketIOServer.handle of <SocketIOServer at 0x7f76c60dc490 fileno=5 address=127.0.0.1:9000>>(<socket at 0x7f76c4b92210 fileno=[Errno 9] Bad fil, ('127.0.0.1', 59266))> failed with TypeError

Reply all
Reply to author
Forward
0 new messages