AttributeError:“ TApplicationException”对象没有属性“结果”

时间:2019-10-04 17:57:41

标签: python rpc circusd

在本地运行circus-serve并使用circus-script调用服务时遇到了这个问题。

尝试了不同版本的马戏团并重新安装了相关软件包,但没有任何效果。

Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
    return handle(*args_tuple)
  File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/circus/thrift/servers/gevent.py", line 68, in handle
    self.processor.process(iprot, oprot)
  File "./.pyenv/versions/3.5.3/envs/carta-web/lib/python3.5/site-packages/circus/thrift/processor.py", line 100, in process
    result = tcall_meta.result
AttributeError: 'TApplicationException' object has no attribute 'result'

1 个答案:

答案 0 :(得分:0)

问题是因为我为服务和客户端使用了不同的配置。