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

Login through a Google account didn't get forwarded to the web browser

Open SaptaDey opened this issue 1 year ago • 6 comments

What happened?

The request for login through a Google account didn't get forwarded to the web browser until the CLI window was closed.

What did you expect to happen?

The login request to be forwarded to the web browser

Client information

$ gemini /about
# paste output here

Login information

Google account

Anything else we need to know?

No response

SaptaDey avatar Jun 30 '25 00:06 SaptaDey

Error: connect ETIMEDOUT 216.239.34.223:443 at createConnectionError (node:net:1646:14) at Timeout.internalConnectMultipleTimeout (node:net:1705:38) at listOnTimeout (node:internal/timers:575:11) at process.processTimers (node:internal/timers:514:7) { errno: -4039, code: 'ETIMEDOUT', syscall: 'connect', address: '216.239.34.223', port: 443 },

how handle this issue

denggangs avatar Jun 30 '25 04:06 denggangs

Hi @SaptaDey could you please tell how you run Gemini CLI and the OS, terminal and your general system info? Maybe I can help you debug I have ran Gemini CLI recently on all 3 OS Windows, Mac, Linux and with various terminals and it all works fine :)

devpool007 avatar Jun 30 '25 21:06 devpool007

Hi @SaptaDey could you please tell how you run Gemini CLI and the OS, terminal and your general system info? Maybe I can help you debug I have ran Gemini CLI recently on all 3 OS Windows, Mac, Linux and with various terminals and it all works fine :)

hi, I encountered the same issue. my env: os: windows11 gemini cli : use npx https://github.com/google-gemini/gemini-cli to intasll node: v23.4.0 terminal: windows powershell issue screenshot:

Image

maudslice avatar Jul 01 '25 08:07 maudslice

OS: Windows Edition Windows 11 Pro for Workstations Version 25H2 OS build 26200.5670 Windows Terminal: Microsoft Corporation 1.22.11141.0

Hi @SaptaDey could you please tell how you run Gemini CLI and the OS, terminal and your general system info? Maybe I can help you debug I have ran Gemini CLI recently on all 3 OS Windows, Mac, Linux and with various terminals and it all works fine :)

SaptaDey avatar Jul 01 '25 13:07 SaptaDey

Hi @SaptaDey could you please tell how you run Gemini CLI and the OS, terminal and your general system info? Maybe I can help you debug I have ran Gemini CLI recently on all 3 OS Windows, Mac, Linux and with various terminals and it all works fine :)

Additionally, I would like to note that the issue is not permanent; if I attempt it 10 times, on average, it only succeeds once, while it fails nine times. More interestingly, on the first occurrence, it mostly passes through, but if I close my terminal and reopen it, and then try to log in, it fails. So, I guess there is something wrong with the terminal's memory. However, I don't notice anything suspicious in the log files.

This is not the case when logging it through Linux. The login performance is better in Fedora 42. But it's worse in Ubuntu 24.04.

SaptaDey avatar Jul 01 '25 13:07 SaptaDey

Unable to duplicate. I'm going to close this for now due to inactivity. Please reopen with more details if this is still an issue.

bdmorgan avatar Jul 29 '25 14:07 bdmorgan