stuck at Waiting for auth... - SOMEBODY help - Authentication timed out. Please try again. - Gemini API/Login with google
⠸ Waiting for auth... (Press ESC to cancel)
-
I used the Gemini API Key (free)
-
Also I tried with Login with Google but nothing pops up?
-
I have added my Gemini API Key to the env config it loads up!
and after a while it says Authentication timed out. Please try again.
same issue here.
use powershell if you'r using cmd, it worked for me.
I use Mac Terminal and meet the same issue
I use Ubuntu headless VM and have the same issue.
At least in mac / linux, in the same shell window/tab where you run the tool, did you ensure the export the env var GEMINI_API_KEY so that is available to the tool?
export GEMINI_API_KEY="YOUR_API_KEY"
@gplasky I am trying to use Login with Google
It appears that Login with Google doesn't work for headless sessions
Same here. As a workaround, you can login on a headful system and copy .gemini to the target system.
Same here. As a workaround, you can login on a headful system and copy .gemini to the target system.
@Keno is just the oauth_cred.json file needed from the headful system? I already have a ${HOME}/.gemini/ directory on the headless system from the original install.
My situation is my google login page was successfully popup, but after I hit the "login" button, the blue ribbon was moving around and around endlessly, and after a while the CLI side popped the following message:
Failed to login. Ensure the Google account you are using is not a Workspace account and that you are not
a licensed Code Assist user (see https://goo.gle/gemini-cli-auth-docs#workspace-gca).
Message: request to https://oauth2.googleapis.com/token failed, reason:
It appears that
Login with Googledoesn't work for headless sessions
If this is the core issue - you want #1437. We're tracking this issue over there.
Same issue remote into headless ubuntu tmux session.
Dose not work in Linux and working in Windows powershell
windows 11/ ubuntu in HOME, LEASING host. has same issue.
I use Mac Terminal and meet the same issue
I have the same issue after ssh -X to the remote EC2 server. Please keep me posted.
╭──────────────────────────────────────────────────────────────────────╮ │ │ │ Select Auth Method │ │ ● Login with Google │ │ ○ Gemini API Key (AI Studio) │ │ ○ Vertex AI │ │ │ │ Failed to login. Message: request to │ │ https://oauth2.googleapis.com/token failed, reason: connect │ │ ETIMEDOUT 108.177.98.95:443 │ │ │ │ (Use Enter to select) │ │ │ │ Terms of Services and Privacy Notice for Gemini CLI │ │ │ │ https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-priva │ │ cy.md │ │ │ ╰─────────────────
│ Failed to login. Message: request to │ │ https://oauth2.googleapis.com/token failed, reason: connect │
This is the problem of the proxy. @gebilaoman You need to configure a right proxy environment for the terminal.
like
export http_proxy="socks5://127.0.0.1:10808"
export https_proxy="socks5://127.0.0.1:10808"
I use the powershell and meet the same issue.
Dose not work in Linux and working in Windows powershell
We aren't monitoring closed issues, so to make sure your feedback is heard, I'm going to lock this. Head over to #1437 to discuss.