Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not send Chinese #61

Closed
lindiboy opened this issue Dec 6, 2013 · 1 comment
Closed

Can not send Chinese #61

lindiboy opened this issue Dec 6, 2013 · 1 comment

Comments

@lindiboy
Copy link

lindiboy commented Dec 6, 2013

Hello error code appears when sending Chinese, I do not know why.
I sincerely thank you please help me

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent-0.13.8-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/server.py", line 49, in handle
handler.handle()
File "/usr/local/lib/python2.7/dist-packages/gevent-0.13.8-py2.7-linux-x86_64.egg/gevent/pywsgi.py", line 180, in handle
result = self.handle_one_request()
File "/usr/local/lib/python2.7/dist-packages/gevent-0.13.8-py2.7-linux-x86_64.egg/gevent/pywsgi.py", line 314, in handle_one_request
self.handle_one_response()
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/handler.py", line 68, in handle_one_response
jobs = self.transport.connect(session, request_method)
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/transports.py", line 101, in connect
return self.handle_post_response(session)
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/transports.py", line 67, in handle_post_response
messages = self.decode(data)
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/transports.py", line 16, in decode
return self.handler.environ['socketio'].decode(data)
File "/usr/local/lib/python2.7/dist-packages/gevent_socketio-0.2.1-py2.7.egg/socketio/protocol.py", line 113, in decode
messages.append(json.loads(data[3:size]))
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Unterminated string starting at: line 1 column 40 (char 39)
<Greenlet at 0x2b329b0: <bound method SocketIOServer.handle of <SocketIOServer at 0x28c4d90 fileno=3 address=127.0.0.1:9000>>(<socket at 0x2b36c50 fileno=[Errno 9] Bad file des, ('127.0.0.1', 48303))> failed with ValueError

@stephenmcd
Copy link
Owner

Duplicate of #56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants