gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Failed to login. Message: Invalid URL

Open wslovenide opened this issue 1 year ago • 5 comments

What happened?

when login with google account, is shows Failed to login. Message: Invalid URL

What did you expect to happen?

show me login account and password pages

Client information

$ gemini /about
# paste output here
Tips for getting started:
1. Ask questions, edit files, or run commands.
2. Be specific for the best results.
3. Create GEMINI.md files to customize your interactions with Gemini.
4. /help for more information.

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                          │
│ Select Auth Method                                                                                       │
│ ● Login with Google                                                                                      │
│ ○ Gemini API Key (AI Studio)                                                                             │
│ ○ Vertex AI                                                                                              │
│                                                                                                          │
│ Failed to login. Message: Invalid URL                                                                    │
│                                                                                                          │
│ (Use Enter to select)                                                                                    │
│                                                                                                          │
│ Terms of Services and Privacy Notice for Gemini CLI                                                      │
│                                                                                                          │
│ https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-privacy.md                                │
│                                                                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

D:\data\gemini_tes   no sandbox (see      gemini-2.5-pro (100% context left)| ✖ 1 error (ctrl+o for
t                    /docs)                                                   details)

Login information

No response

Anything else we need to know?

No response

wslovenide avatar Jul 02 '25 01:07 wslovenide

我也遇到了这个问题,该怎么解决呀

ohhahahahahha avatar Jul 02 '25 03:07 ohhahahahahha

我也遇到了这个问题,该怎么解决呀 应该是个bug,我也没解决

wslovenide avatar Jul 02 '25 03:07 wslovenide

Same here

billwei avatar Jul 02 '25 18:07 billwei

When using a proxy server, change the protocol from socks5 to http, this worked for me.

noelemahcz avatar Jul 03 '25 09:07 noelemahcz

if you use the proxy server, modify terninal env socks5 to http,and must add the last line,like this: export http_proxy="http://127.0.0.1:7890" export https_proxy="http://127.0.0.1:7890" export no_proxy="localhost,127.0.0.1"

z-zkagami avatar Jul 08 '25 01:07 z-zkagami