Share feedback, ideas and get community help

Updated 6 days ago

Eternal loop

Recently I had a problem with typebot regarding an incorrect loop, typebot started endlessly trying to execute the request within this loop, I deleted chat sessions and tried to locate some open session, I deleted the component and it still continued the loop.

I only managed to stop when the machine was turned off. Can you tell me how to solve this problem without shutting down the entire infrastructure? Is there any place where we could put a lock in these cases? @Baptiste
B
4 comments
Indeed we have a safe mechanism to avoid infinite loop. You can set a variable called
CHAT_API_TIMEOUT
For example you can set it to 5000 (ms) and it will kill the execution if 5s elapsed, note that it has exception for known long requests like OpenAI or else
Add a reply
Sign up and join the conversation on Discord