some expection, i do not know how happened

24 views
Skip to first unread message

anderson howl

unread,
Sep 4, 2012, 1:29:09 AM9/4/12
to pyweb...@googlegroups.com
[2012-09-04 13:19:58,643] [ERROR] __main__.WebSocketServer: Exception in processing request from: ('::1', 43000, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "./standalone.py", line 474, in __init__
    self, request, client_address, server)
  File "/usr/lib/python2.7/SocketServer.py", line 638, in __init__
    self.handle()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "/usr/lib/python2.7/BaseHTTPServer.py", line 320, in handle_one_request
    if not self.parse_request():
  File "./standalone.py", line 560, in parse_request
    self._options.dispatcher.transfer_data(request)
  File "/home/howl/vcs/deepin/deepin-software-center-v3/frontend/middleware/src/mod_pywebsocket/dispatch.py", line 286, in transfer_data
    transfer_data_(request)
  File "<string>", line 27, in web_socket_transfer_data
ValueError: web_socket_transfer_data raised exception for /update_status: too many values to unpack


I use a while to read some message and send it to client then sleep sometime and send again, but error happend, how can i do ?

Takashi Toyoshima

unread,
Sep 4, 2012, 1:41:35 AM9/4/12
to pyweb...@googlegroups.com
The exception looks raised from the user handler.
Please check web_socket_do_extra_handshake implementation in your
update_status_wsh.py.

孔晓泉

unread,
Sep 4, 2012, 1:48:33 AM9/4/12
to pyweb...@googlegroups.com
as default, i pass the extra_handshake,nothing changed

2012/9/4 Takashi Toyoshima <toyo...@chromium.org>

Takashi Toyoshima

unread,
Sep 4, 2012, 1:51:36 AM9/4/12
to pyweb...@googlegroups.com
Ah, sorry.
It happens in web_socket_transfer_data of your update_status_wsh.py.
Please check line 27 of the file.

孔晓泉

unread,
Sep 4, 2012, 1:59:59 AM9/4/12
to pyweb...@googlegroups.com
just moment, i check my code ,i found it's my error on other code,python just give a wrong message make me believe error happend in pywebsocket's request.ws_stream.send_message function which worked well, dam python

2012/9/4 Takashi Toyoshima <toyo...@chromium.org>

孔晓泉

unread,
Sep 4, 2012, 2:01:44 AM9/4/12
to pyweb...@googlegroups.com
Thank you~ & sorry for my low level error

2012/9/4 孔晓泉 <u1ma...@gmail.com>
Reply all
Reply to author
Forward
0 new messages