You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Aki Sukegawa (JIRA)" <ji...@apache.org> on 2016/01/13 12:15:39 UTC
[jira] [Commented] (THRIFT-3548) Assertion Error from thrift
library of python
[ https://issues.apache.org/jira/browse/THRIFT-3548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15096033#comment-15096033 ]
Aki Sukegawa commented on THRIFT-3548:
--------------------------------------
Is it reproducible with a minimal code that only calls the problematic method ?
The assertion is basically saying "something is in progress so we cannot start writing new message."
So maybe you're just using the TCompactProtocol instance concurrently.
> 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)