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:
In Slow and Step-by-Step mode, everything works perfectly.
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!