Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Freezing when asking too many questions in a row #102

Open
Eikosa opened this issue Aug 30, 2023 · 4 comments
Open

Freezing when asking too many questions in a row #102

Eikosa opened this issue Aug 30, 2023 · 4 comments
Labels
more-information-needed More information required

Comments

@Eikosa
Copy link
Contributor

Eikosa commented Aug 30, 2023

When I ask too many questions in a row, after a while it stops responding. Opening a new conversation solves the problem

For this, ask many questions in a row to generate the error, after a while the bot will not answer one of them. The error may not occur immediately, for me it occurred on the 21st message in a row.

@scmanjarrez scmanjarrez added the more-information-needed More information required label Aug 30, 2023
@Eikosa
Copy link
Contributor Author

Eikosa commented Aug 30, 2023

I think I found the error code, but I'm not sure if this is it:

2023-08-30 13:54:07,622 - asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-216' coro=<BingAI.run() done, defined at /root/EdgeGPT-Telegram-Bot/src/backend.py:238> exception=KeyError('adaptiveCards')>
Traceback (most recent call last):
  File "/root/EdgeGPT-Telegram-Bot/src/backend.py", line 260, in run
    async for final, resp in ut.CONV["all"][self.cid][self.conv_id][
  File "/usr/local/lib/python3.10/dist-packages/EdgeGPT/EdgeGPT.py", line 187, in ask_stream
    async for response in self.chat_hub.ask_stream(
  File "/usr/local/lib/python3.10/dist-packages/EdgeGPT/chathub.py", line 178, in ask_stream
    resp_txt = result_text + response["arguments"][0][
KeyError: 'adaptiveCards'

After this problem occurred, I reset the bot and it started saying:
image

@scmanjarrez
Copy link
Owner

Hmm, can you run the /history_update command, waiting few seconds and trying again? Sometimes, the history gets corrupted (the chat exists locally, but not on the server)

@Eikosa
Copy link
Contributor Author

Eikosa commented Aug 31, 2023

When I use this command, it does indeed solve the problem, but it is a bit annoying to do this every time it freezes and rewrite all my queries

@scmanjarrez
Copy link
Owner

Have you encountered this error again? I need more context to debug this error properly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
more-information-needed More information required
Projects
None yet
Development

No branches or pull requests

2 participants