Client or integration
Codex App
Area
Provider adapter
Summary
When Google Antigravity (Cloud Code Assist API) rejects a request due to an unsupported geographic region or datacenter IP (HTTP 400 with FAILED_PRECONDITION: User location is not supported for the API use.), OpenCodeX classifies it as Antigravity invalid request and returns type: "invalid_request_error".
Expected: It should be classified as a location/permission error (location_not_supported / permission_error) rather than an invalid request error, because the request payload/prompt is not syntactically invalid.
Reproduction
- Start OpenCodeX proxy (
opencodex start --port 10100).
- Configure
google-antigravity provider.
- Send a request from a network location or datacenter IP where Google API restricts access.
- Upstream returns 400
User location is not supported for the API use.
- Observe OpenCodeX output:
Provider error 400: Antigravity invalid request: User location is not supported for the API use. with type: "invalid_request_error".
Version
2.43.0
Operating system
macOS 15.5
Provider and model
google-antigravity / gemini-3.8-flash
Logs or error output
Provider error 400: {"error":{"message":"Provider error 400: Antigravity invalid request: User location is not supported for the API use.","type":"upstream_error","code":null}}
Screenshots and supporting files
No response
Redacted configuration
No response
Checks
Client or integration
Codex App
Area
Provider adapter
Summary
When Google Antigravity (Cloud Code Assist API) rejects a request due to an unsupported geographic region or datacenter IP (
HTTP 400withFAILED_PRECONDITION: User location is not supported for the API use.), OpenCodeX classifies it asAntigravity invalid requestand returnstype: "invalid_request_error".Expected: It should be classified as a location/permission error (
location_not_supported/permission_error) rather than an invalid request error, because the request payload/prompt is not syntactically invalid.Reproduction
opencodex start --port 10100).google-antigravityprovider.User location is not supported for the API use.Provider error 400: Antigravity invalid request: User location is not supported for the API use.withtype: "invalid_request_error".Version
2.43.0
Operating system
macOS 15.5
Provider and model
google-antigravity / gemini-3.8-flash
Logs or error output
Provider error 400: {"error":{"message":"Provider error 400: Antigravity invalid request: User location is not supported for the API use.","type":"upstream_error","code":null}}Screenshots and supporting files
No response
Redacted configuration
No response
Checks