Skip to content

[BUG] Google Gemini fails with “Invalid URL protocol” when custom base URL is unset #10435

@Nullsire

Description

@Nullsire

Problem (one or two sentences)

When I use google gemini api, it went with error: invalid url. I didn't use custom base url setting.

Context (who is affected and when)

It happens when choose Google Gemini as API provider and do not select custom base url setting.

Reproduction steps

Choose Google Gemini as API provider and do not select custom base url setting, then fill in the api key and send queries.

Expected result

do not report error: Invalid URL protocol: the URL must start with http: or https:. sending request

Actual result

Invalid URL protocol: the URL must start with http: or https:. sending request

Variations tried (optional)

No response

App Version

v3.38.2

API Provider (optional)

Google Gemini

Model Used (optional)

gemini-3-flash-preview

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs InfoMissing details or unclear. Waiting on author to provide more context.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Issue [Needs Info]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions