You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Ravi Shankar Thangavel (JIRA)" <ji...@apache.org> on 2016/02/27 00:31:18 UTC

[jira] [Updated] (THRIFT-3683) BadYieldError in thrift py:tornado server

     [ https://issues.apache.org/jira/browse/THRIFT-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravi Shankar Thangavel updated THRIFT-3683:
-------------------------------------------
    Description: 
Happens with a tornado server and a regular python client. The call completes successfully on the client side but throws this exception on the server side

Traceback (most recent call last):
  File "/Users/ravithangavel/workspace/fastTrackService/src/hack.py", line 177, in handle_stream
    yield self._processor.process(iprot, oprot)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1008, in run
    value = future.result()
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1090, in handle_yield
    self.future = convert_yielded(yielded)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/singledispatch.py", line 210, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1222, in convert_yielded
    raise BadYieldError("yielded unknown object %r" % (yielded,))



  was:
Traceback (most recent call last):
  File "/Users/ravithangavel/workspace/fastTrackService/src/hack.py", line 177, in handle_stream
    yield self._processor.process(iprot, oprot)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1008, in run
    value = future.result()
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/concurrent.py", line 232, in result
    raise_exc_info(self._exc_info)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1090, in handle_yield
    self.future = convert_yielded(yielded)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/singledispatch.py", line 210, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1222, in convert_yielded
    raise BadYieldError("yielded unknown object %r" % (yielded,))


> BadYieldError in thrift py:tornado server
> -----------------------------------------
>
>                 Key: THRIFT-3683
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3683
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>    Affects Versions: 0.9.3
>            Reporter: Ravi Shankar Thangavel
>
> Happens with a tornado server and a regular python client. The call completes successfully on the client side but throws this exception on the server side
> Traceback (most recent call last):
>   File "/Users/ravithangavel/workspace/fastTrackService/src/hack.py", line 177, in handle_stream
>     yield self._processor.process(iprot, oprot)
>   File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1008, in run
>     value = future.result()
>   File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/concurrent.py", line 232, in result
>     raise_exc_info(self._exc_info)
>   File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1090, in handle_yield
>     self.future = convert_yielded(yielded)
>   File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/singledispatch.py", line 210, in wrapper
>     return dispatch(args[0].__class__)(*args, **kw)
>   File "/Users/ravithangavel/.virtualenvs/tutorial/lib/python2.7/site-packages/tornado/gen.py", line 1222, in convert_yielded
>     raise BadYieldError("yielded unknown object %r" % (yielded,))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)