diegosouzapw/OmniRoute · error
[models] antigravity onboardUser failed at
Error message
[models] antigravity onboardUser failed at ${url} (${response.status}) — trying next What it means
Warning inside the onboardUser URL loop of antigravity bootstrap: the POST to onboard a Google Code Assist account at one candidate endpoint returned a non-OK status (auth rejection, rate limit, or endpoint outage, possibly after an abort/timeout). The loop continues to the next URL; only exhaustion of all URLs fails the bootstrap.
Solutions
- Check the HTTP status: 401/403 → refresh OAuth token/scopes; 429 → back off and retry later; 5xx → Google-side, retry or use next endpoint.
- Verify the tier_id and metadata payload match what the endpoint expects.
- If all endpoints fail, report bootstrap failure with the last status to the operator.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at open-sse/services/antigravityProjectBootstrap.ts:211 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/634c592bce1cc58d.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/services/antigravityProjectBootstrap.ts:211
if (response.ok) {
// Accounts Google expects to Bring Their Own Project: onboardUser
// returns 200 without a `cloudaicompanionProject` in the body — no
// automatic project creation for standard-tier/personal accounts
// (tracked in #8491). Detect that so we can fail fast with a clear
// instruction instead of retrying forever or fabricating an id that
// Google later rejects with a delayed 429 RESOURCE_EXHAUSTED.
const body = await response.text().catch(() => "");
if (body && !/cloudaicompanionProject/.test(body)) {
console.warn(
`[models] antigravity onboardUser done but no project in response at ${url} — Google BYOP (user-defined GCP project) required`
);
return "requires_manual_project";
}
return "onboarded";
}
console.warn(
`[models] antigravity onboardUser failed at ${url} (${response.status}) — trying next`
);
} catch (error) {
if (signal?.aborted || (error instanceof Error && error.name === "AbortError")) {
throw signal?.reason ?? error;
}
const msg = error instanceof Error ? error.message : String(error);
console.warn(`[models] antigravity onboardUser threw for ${url}: ${msg} — trying next`);
}
}
return "failed";
}
/**
* Per-token failure backoff for the onboardUser creation path.
*
* A FAILED onboard attempt must never be memoized as "done": a transient
* upstream/network error would otherwise poison the account for the wholeView on GitHub (pinned to a179ffed5b)