Skip to content

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

@evil-shrike

Description

@evil-shrike

Problem (one or two sentences)

Sending any request (with ANY prompt) to ANY Gemini model fails with this generic error:
API Request Failed
Gemini generate context stream error: exception TypeError: fetch failed sending request

Image

Initially reported here:
#9465

first version where it appears: 3.33.2
last checked version where it's actual: 3.38.3

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

response from Gemini

Actual result

A generic error like the API endpoint isn't reachable

Variations tried (optional)

No response

App Version

3.38.3

API Provider (optional)

Google Gemini

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

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