V0 Api stream ends without any error message

Hello,

I’m seeing an issue with the SSE (Server-Sent Events) stream. Here’s what’s happening:

The stream starts normally and processes messages
After about 1 minute, it ends abruptly

The last log message shows:

“usage”: {

“prompt_tokens”: 2352,

“completion_tokens”: 4000,

“total_tokens”: 6352

}

We’re using Server-Sent Events (SSE) for streaming
The stream ends without any error message
We’re not getting any proper notification about why the stream ended

Is this a timeout or token limit issue?

Did you know there’s another category dedicated to v0 topics? A human should be here soon to help, but the answer may already be available even faster in one of these other posts.

Our docs are a great place to start.

We also have a walkthrough to help guide your workflow.

And these recordings can give you a look at v0 features and strategies in action shown by our Community:

https://community.vercel.com/tags/c/events/42/v0

Hi, @remzikilnc! Welcome. :waving_hand:

Are you still seeing this issue?

I wonder if it you’re hitting the token limit. :thinking: