Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

Could not contain "@" and ":" in API Key #342

@potofo

Description

@potofo

Which API Provider are you using?

OpenAI Compatible

Which Model are you using?

Azure OpenAI gpt-4o

What happened?

In the API Provider settings of Roo-Cline, if you select OpenAI Compatible and the API key set in the custom extended API relay server contains ':' or '@', the API key will not propagate to the API relay server.
I tried URL encoding ":" and "@", but the result was the same.
You cannot remove ":" or "@" from the API key.
I can't read TypeScript, so I can't analyze the code.

Does anyone know a good way to solve this problem?

Steps to reproduce

1.Open Setting of Roo-Cline
2.Select OpenAI Compatible to API Provider
3.set API Key contain "@" and ":"
4.API Request Failed error occurred.

API Request Failed
401 Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

5.Confirm Log
When I confirm the API relay server log, the API key was empty.

Relevant API REQUEST output

API Request Failed 
401 Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions