gemini-cli - 💡(How to fix) Fix Frequent error message after each call [11 comments, 9 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#25267Fetched 2026-04-14 05:56:24
View on GitHub
Comments
11
Participants
9
Timeline
22
Reactions
13
Author
Timeline (top)
commented ×11cross-referenced ×4subscribed ×4labeled ×2

Error Message

✕ [API Error: <html><head><meta http-equiv="content-type"

Code Example

> /about
About Gemini CLI│                                          │
CLI Version   0.1.4Git Commit    1078a54                    │
Model         gemini-2.5-flash           │
Sandbox       no sandbox                 │
OS            darwin
RAW_BUFFERClick to expand / collapse

What happened?

✕ [API Error: <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>]

What did you expect to happen?

Normal Run

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                         │
│                                          │
│ CLI Version   0.1.4                      │
│ Git Commit    1078a54                    │
│ Model         gemini-2.5-flash           │
│ Sandbox       no sandbox                 │
│ OS            darwin
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

The API error suggests that the request is being flagged as automated, so a workaround might involve modifying the request headers or rate limiting to mimic legitimate traffic.

Guidance

  • Verify the API request headers to ensure they are set up to identify the request as coming from a legitimate source, such as including a valid User-Agent header.
  • Check the request rate to ensure it's not exceeding Google's allowed limits, as rapid successive requests may trigger automated query detection.
  • Consider implementing a delay between requests to space them out and avoid triggering Google's protection mechanisms.
  • Review Google's support page on automated queries (https://support.google.com/websearch/answer/86640) for more information on how to comply with their policies.

Notes

The provided information does not include specific details about the API request being made, so these suggestions are based on general principles of avoiding automated query detection.

Recommendation

Apply workaround: Modify the request headers and implement rate limiting to comply with Google's policies and avoid being flagged as automated.

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