Roo-Code: Constantly getting error in API Request Failed

Which version of the app are you using?

v3.3.2

Which API Provider are you using?

OpenAI Compatible

Which Model are you using?

Deepseek-{V3,R1}

What happened?

I am constantly getting the error API Request Failed during conversations, the error reported is Cannot read properties of undefined (reading '0').

I am not sure but I think it might be because of parsing the streaming response?

I am able to get multiple responses successfully, but it gets to a point in the conversation where all requests start to return the above error and I need to start a new conversation.

Steps to reproduce

  1. Start a new conversation
  2. Send some messages, point to some files & folders relevant to the task
  3. The model will start doing its thing and eventually hang with the error mentioned.

Relevant API REQUEST output

Cannot read properties of undefined (reading '0')

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 35

Most upvoted comments

has similar bug, set the Deepseek API two days ago and it went well, but after the update, I always stuck at the stage of waiting for API response.

I have this same issue with claude sonnet github version

feels like a war ;D

I should’ve included in the issue description, but my API provider is Deepinfra, so we can’t consider this issue as only happening by contacting directly Deepseek’s servers.

Surely they just route through Deepseek anyway?

Pretty sure they serve the models in their own infra.

Image Image An error occurs again In this case, the length of the request is 0

Same issue here.

(Used to work 2 days ago).

(@JB-SelfCompany . By the way, How did you access logs ?)

no, i dont have access

Image

Image

An error occurs again In this case, the length of the request is 0

I should’ve included in the issue description, but my API provider is Deepinfra, so we can’t consider this issue as only happening by contacting directly Deepseek’s servers.

Roo Code and Cline are not working with R1/V3 for me — they get stuck on API requests with no response, eventually timing out. Cursor works fine with R1. Could this be a block on DeepSeek’s side?

Now that’s interesting. I hadn’t thought of that. Looks like I’ll be requesting a refund with lawyers if that turns out to be the case. It was so good.

I know they have had API issues today but at the time of my issues, it was apparently 100% up with no problems.

Actually, I just tried curl and some other apps — they’re also getting stuck and timing out. So, most probably, they are experiencing some issues with infrastructure and this is not a block of AI code gens.

Same issue; requests to Deepseek are working as I can do so directly from my scripts. Roo Code however, not working.