Error right after sending a message to the AI

Hi everyone,

I’m building an AI chat feature in Bubble.

The process is simple:

-User sends a message
-OpenAI streams the AI ​​response
-After the stream is finished, I create a second message (the full response from the AI).
-Then I modify the related Project: I add both messages to the project’s message list.

In Debug mode:
:white_check_mark:In Slow and Step-by-Step mode, everything works perfectly.
:red_exclamation_mark: In Run mode, this error message appears immediately after sending the message.

The error is: “Sorry, we encountered a temporary error and cannot fulfill your request. We will fix it as soon as possible; please try again in a little while!”

However:
After dismissing the error message, the app continues to run correctly, both the user and AI messages are saved and displayed as expected.

How can I avoid getting this error after sending the user message?
Thank you very much for your help! :folded_hands:

Have you tried doing all this without debugging?

Yes and it didn’t work either

I found the solution. There were too many “Do a search for…” and they got stuck. It works now. :blush:

This topic was automatically closed after 70 days. New replies are no longer allowed.