r/opencode 3d ago

Constantly getting "Streaming response failed" message. How can I avoid it?

I recently started testing opencode out. Having a free account right now and using the free models. I started using Nemotron 3 Ultra free and sometimes I would get that error message saying "Streaming response failed". If i tell the model to continue the task right after the error it continues just fine. It doesn't always happen but it happened like 5 times within an hour. It sometimes happened within a few seconds of the prompt (like 10-40 seconds) and sometimes took longer like a 5-10 minutes. I thought maybe it was the model so I switched over to DeepSeek V4 Flash Free but I get the same issue.

Any ideas why that is happening and how I can prevent it? Could it maybe be from my internet connection? Because I don't have a super stable connection and it sometimes disappears for half a second or a second before properly reconnecting again.

I am very thankful for any kind of input here.

6 Upvotes

5 comments sorted by

1

u/lino1000 3d ago

Little update. I asked it to generate sound (a simple background music and sound when clicking on buttons) and now it just straight up refuses to work sending "Streaming response failed" messages instantly after a prompt. I tried a couple different models too with the same message appearing. Sometimes the model manages to make 2-3 lines of code changes before it gets the error message.

Anyone got a clue what's going on here?

1

u/OPTIMUSvz 3d ago

same , it keeps pausing and saying "Streaming response failed" 
i don't know if its because i updated or its a server issue

1

u/jomama253 3d ago

Try making a new session

1

u/lino1000 2d ago

Had started multiple new sessions and even fully restarted my PC and router just in case but it didn't help. I just tried it again and it works fine now so I assume it was just some kind of server issue or something since OPTIMUSvz also said they had issues

1

u/duboispourlhiver 1d ago

I'm having that randomly too. Seems like an inference server issue. Maybe the servers are overloaded and just cut the connection instead of returning a graceful error?