raye pember created THRIFT-3548:
-----------------------------------
Summary: Assertion Error from thrift library of python
Key: THRIFT-3548
URL: https://issues.apache.org/jira/browse/THRIFT-3548
Project: Thrift
Issue Type: Bug
Components: Python - Library
Reporter: raye pember
I'm using a thrift-based-program in python and an error occurs from the thrift
library. This is the thrift file I use.
https://github.com/cslinmiso/LINE-instant-messenger-protocol/blob/master/line.thrift
I call a function in "TalkService.py" which is generated from the
"line.thrift", then it gave me the following error.
Traceback (most recent call last):
File "/private/var/mobile/Downloads/final/linetmp/api.py", line 360, in
_sendMessage
return self._client.sendMessage(seq, message)
File "/private/var/mobile/Downloads/final/curve/TalkService.py", line 6540,
in sendMessage
self.send_sendMessage(seq, message)
File "/private/var/mobile/Downloads/final/curve/TalkService.py", line 6544,
in send_sendMessage
self._oprot.writeMessageBegin('sendMessage', TMessageType.CALL, self._seqid)
File "/usr/lib/python2.7/site-packages/thrift/protocol/TCompactProtocol.py",
line 140, in writeMessageBegin
assert self.state == CLEAR
AssertionError
Some functions(in TalkService.py) work fine but other many functions(in
TalkService.py) give me this error.
And I don't think it is a problem of the "line.thrift" because I heard that it
works fine in other languages.(no error with php and C++)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)