LINE icon indicating copy to clipboard operation
LINE copied to clipboard

HELP ME ! How To Fix kickout Bot

Open alroysh opened this issue 6 years ago • 4 comments

Traceback (most recent call last): File "examples/echobot.py", line 33, in for op in client.longPoll(): File "build/bdist.linux-aarch64/egg/line/client.py", line 512, in longPoll operations = self._fetchOperations(self.revision, count) File "build/bdist.linux-aarch64/egg/line/api.py", line 332, in _fetchOperations File "build/bdist.linux-aarch64/egg/curve/CurveThrift.py", line 482, in fetchOperations File "build/bdist.linux-aarch64/egg/curve/CurveThrift.py", line 486, in send_fetchOperations File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/thrift/protocol/TCompactProtocol.py", line 140, in writeMessageBegin assert self.state == CLEAR AssertionError

alroysh avatar Jul 31 '17 19:07 alroysh

File echobot.py in line 33 Assertion was error, maybe you have to learn Python basic

fadhiilrachman avatar Jul 31 '17 21:07 fadhiilrachman

can you help me to fix it?

alroysh avatar Aug 01 '17 01:08 alroysh

That happened to me too.

Perhaps you're using multithreading? You have to use a lock. Google it.

Else, just reopen the transport, and recall the method. Might be caused by lower level exception, which was caught, but left garbage.

R-N avatar Aug 01 '17 02:08 R-N

Its happened when thrift not finish writing the request but you force it to send.

ii64 avatar Aug 01 '17 08:08 ii64