Gemini HTTP 400 location error in Antigravity 2.25.0; non-Gemini model works

Antigravity Desktop 2.25.0 on Windows repeatedly rejects a simple “hi” prompt with Gemini (the original reproduction used Gemini 3.8 Flash High):

{
  "error": {
    "code": 400,
    "message": "User location is not supported for the API use.",
    "status": "FAILED_PRECONDITION"
  }
}

Comparison: A non-Gemini model responds normally in Antigravity on the same network. The Google Terms of Service page for the account used in Antigravity displays Japan. This describes the account’s associated country, not a verification of the API request’s location.

Checks already completed

  • The desktop updater reports that 2.25.0 is current.
  • Removed an old PowerShell startup file that set HTTP_PROXY/HTTPS_PROXY to an inactive localhost port and disabled Node.js TLS certificate validation. New PowerShell sessions now have no such overrides.
  • No persistent user/machine HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, or CLOUD_CODE_URL override was found. Desktop shortcuts launch the original executable without proxy flags.
  • Complete restarts and a new conversation did not resolve the error.
  • The current connection uses Clash Mi in global TUN mode with a Singapore-labeled exit. A Cloudflare connectivity check reports SG; this does not establish Google’s own IP classification.
  • Connection observations immediately after reproduction show language_server.exe connecting to daily-cloudcode-pa.googleapis.com:443 and aicode.googleapis.com:443 through that TUN and selected exit. These are connection-level observations, not an exact mapping of an encrypted request to a TraceID.
  • The system DNS query for daily-cloudcode-pa.googleapis.com returned no AAAA answers, and the observed language_server TCP connections were IPv4.

Failure identifiers

  • Trajectory ID: e7c17f40-0f23-424e-b7a7-662ed5e074..
  • TraceID after cleanup: 0x78a4f315f61806..
  • Response timestamp: 2026-10-23 11:46:55 UTC
  • Earlier TraceID: 0xf4e03f85d13c68.. at 2026-10-23 11:36:23 UTC
  • A new conversation also failed at 2026-10-23 11:51:49 UTC, with trajectory 60a2ea2d-614f-4853-8fe1-ebe01e6f1a... Its separate server TraceID was not captured. Conversation title generation returned the same location error.

Could you advise on the supported diagnostic or escalation procedure to distinguish Gemini-specific egress IP classification, service/account eligibility, and a backend error? If exact identifiers need to be supplied privately, please point me to the appropriate channel. I have not verified a direct, non-proxied connection in a supported region and do not want to present the proxy observations as proof of eligibility.

No credentials, OAuth tokens, cookies, subscription URLs, or full IP addresses are included in this report.

Hi @Vicky1,

Thank you for sharing your detailed network observations and diagnostic notes.

When routing traffic through VPNs, proxies, or global TUN configurations (such as Clash Mi), commercial and datacenter egress subnets are frequently classified outside supported regions by automated GeoIP detection, even if third-party lookup services designate the IP as Singapore. This commonly triggers the HTTP 400 FAILED_PRECONDITION: User location is not supported for the API use error on Gemini requests.

To isolate the issue:

  1. Disable TUN/proxy routing and test a prompt using a direct, residential or mobile internet connection from an officially supported region (such as Japan or Singapore).
  2. Update Antigravity to the latest release (v2.26.0) to ensure you have the latest connection and client stability fixes.
  3. If you still encounter location precondition errors on a direct connection within a supported region, please reply here with the country shown on your [Google Terms of Service](https://policies.google.com/terms) page and whether the same error occurs in the Antigravity CLI so we can look into it further.