gemini-cli - 💡(How to fix) Fix Bug Report: Unhandled Promise Rejection on OAuth Callback Timeout [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26993Fetched 2026-05-14 03:45:47
View on GitHub
Comments
0
Participants
1
Timeline
9
Reactions
0
Author
Participants
Timeline (top)
labeled ×6added_to_project_v2 ×1issue_type_added ×1unlabeled ×1

Error Message

Error: OAuth callback timeout at Timeout._onTimeout (file:///C:/Users/USER/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-6DSAZLFF.js:324841:29) at listOnTimeout (node:internal/timers:605:17) at process.processTimers (node:internal/timers:541:7)

Code Example

Error: OAuth callback timeout
    at Timeout._onTimeout (file:///C:/Users/USER/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-6DSAZLFF.js:324841:29)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)
RAW_BUFFERClick to expand / collapse

What happened?

The CLI crashes with a critical unhandled promise rejection during the authentication flow. This occurs when the OAuth callback exceeds the internal timeout limit, likely due to a slow network connection or a delay in the user completing the browser-based authentication.

Error Details Error Type: CRITICAL: Unhandled Promise Rejection!

Reason: Error: OAuth callback timeout

Module: @google/gemini-cli

Location: bundle/chunk-6DSAZLFF.js:324841:29

Stacktrace

Error: OAuth callback timeout
    at Timeout._onTimeout (file:///C:/Users/USER/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-6DSAZLFF.js:324841:29)
    at listOnTimeout (node:internal/timers:605:17)
    at process.processTimers (node:internal/timers:541:7)

Steps to Reproduce Run a command requiring authentication (e.g., gemini login or any query if unauthenticated).

Wait for the browser to open for OAuth.

Allow the timeout period to elapse without completing the sign-in, or experience a significant network delay during the callback.

What did you expect to happen?

this should not happen or at least explain in details why it is happening without crashing the session

Client information

OS: Windows (based on file path C:/Users/USER/...)

Installation Method: Global npm module (@google/gemini-cli)

Runtime: Node.js

Login information

API key

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING