Skip to content

[BUG] TypeError: fetch failed sending request for any task with Gemini #9465

@evil-shrike

Description

@evil-shrike

Problem (one or two sentences)

I'm using Roo Code with Gemini. Recently it's started failing for any task with this error:
API Request Failed
Gemini generate context stream error: exception TypeError: fetch failed sending request

I tried switching models and tried many, it doesn't seem to be related.
I checked the API key I'm using, it works fine (in curl).
I understand it seems more like a local issue. But can you please point me where I can see more logs or a way to diagnose it.

Image

Context (who is affected and when)

the issue doesn't seem to be related to user's actions, any task via Gemini fails

Reproduction steps

select Gemini with any model
provide any text for a task

Expected result

Something meaningful

Actual result

A generic error like the API endpoint isn't reachable

Variations tried (optional)

No response

App Version

3.33.2

API Provider (optional)

Google Gemini

Model Used (optional)

N/A

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

API Request Failed
Gemini generate context stream error: exception TypeError: fetch failed sending request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions