python thrift error ```TSocket read 0 bytes```

后端 未结 4 1054
礼貌的吻别
礼貌的吻别 2021-02-20 04:30

My python version:2.7.8
thrift version:0.9.2
python-thrift version:0.9.2
OS: centOS 6.8
My test.thrift file:

const string HELLO_IN_KOREAN         


        
4条回答
  •  半阙折子戏
    2021-02-20 05:21

    I had this problem because my implementation was raising an exception that the service endpoint wasn't specified to raise, I fixed it by adding a throws ( 1: MyException exc) to the end of my endpoint specification.

提交回复
热议问题