API Streaming does not work when in Custom Event

Hello,

I believe I am encountering an issue where OpenAI’s Create Run API w/streaming will not call from within a custom event.

I’ve successfully integrated OpenAI into my app and have been using it for months. But with Bubble’s latest native API streaming feature, I wanted to implement some changes.

I added the “Create run” call via the API Connector, except this time with streaming.

I have a custom event where this API is called titled “openai_run_streaming_create”. It has 2 actions, 1) create a run w/streaming and 2) display the result’s of step 1’s text stream into a group:

This custom event is part of another workflow:

The Problem

What I discovered is that with this current setup, the “Create Run” all will not run. Instead, I receive this error from Bubble:

What I discovered is that when the “Create Run” call is run from within the custom event, it will fail for some reason. But when I include the call directly in a workflow, it succeeds.

As another test, I rebuilt the same workflow, including with a custom event, except I used a “Create Run” API call that did not use streaming. This worked.

This issue seems to be that the call which has streaming enabled cannot be called from within a custom event, which has to be a bug.

If this is not a bug, can someone explain why this should not work?

Thanks,

Reginald Andreas

1 Like

Is there any update on this? I am getting a similar issue where it doesn’t work when triggered from a custom event

No one has addressed it yet.

@fede.bubble , can I raise this to your attention?

Hi there!
The team is investigating this and should have a fix in the next few days

2 Likes

Thank you Fede.

Greatly appreciated.

Good morning, @fede.bubble

I just wanted to let you know I’ve noticed some changes. I am now able to trigger this API streaming from within a custom event. This will be hugely beneficial. Thanks.

I just wanted to bring to your attention that although this is working, it seems streaming is not working. Instead, the content displays seemingly when it’s done on the OpenAI side, so not actively streaming.

I’m sure Bubble is already aware of this and is actively working on it, but I thought I’d mention it just in case.

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