Share feedback, ideas and get community help

Updated 3 weeks ago

"Could not create stream" - OpenAI integration issue

On Typebot self-hosted I encounter an error when trying to use the OpenAI integration.

The error is:

{
"message":"Could not create stream"
}

Anyone encountered this and managed to fix it?

Using latest version 3.1.2
Attachment
Screenshot_2024-11-30_at_20.11.55.png
M
i
B
5 comments
I think only works in production not in the preview
I still have the issue in the published bot, the chat stops.
Any error in server logs?
I've captured the logs showing the exact error sequence. The failure happens at the /api/v2/sessions/[session-id]/streamMessage endpoint which returns a 500 error. The v1 endpoints like /continuChat are working fine. The request to the failing endpoint has a content-length of 2 bytes, which seems unusually small. Could this be related to how the streaming request is being formatted?
βœ… I found the solution.

The ENCRYPTION_SECRET values in docker-compose.yml were different between builder and viewer services. Matching these values and restarting the services resolved the error.

This was caused by AES cipher failures due to encryption key mismatch, preventing proper data encryption/decryption between services.
Add a reply
Sign up and join the conversation on Discord