poe-api icon indicating copy to clipboard operation
poe-api copied to clipboard

Exception in thread

Open x169x opened this issue 1 year ago • 1 comments

I started to get this error starting from version 0.4.8 when I run my code:

            for chunk in poe_client.send_message(poe_model, sentence_messages, with_chat_break=True):
                pass

            print(f'{"":=^160}')
            print(f'Response for {message.author.name}: {chunk["text"]}')
            reply = chunk["text"]

Error code:

Exception in thread
Thread-32 (recv_post_thread)Response for x169x: Hi, x169x!:


Traceback (most recent call last):
  File "C:\Users\shely\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
  self.run()
  File "C:\Users\shely\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
  self._target(*self._args, **self._kwargs)
  None  File "C:\Users\shely\AppData\Local\Programs\Python\Python310\lib\site-packages\poe.py", line 564, in recv_post_thread
  
  bot_message_id = self.active_messages[human_message_id]
  KeyError: 1636771016

x169x avatar Jul 05 '23 19:07 x169x

Same problem

zhouhh2017 avatar Jul 24 '23 11:07 zhouhh2017