diegosouzapw/OmniRoute · error

[models] antigravity loadCodeAssist at

Error message

[models] antigravity loadCodeAssist at ${url} returned no project id — trying next

What it means

Bootstrap-level warning: a loadCodeAssist endpoint responded 200 but the parsed body contained no usable project id (neither a string body nor an object with an `id` field). The loop moves to the next candidate URL; if it was the last URL, bootstrap returns an empty projectId so the caller can fail with a clear message. Indicates the account has no Code Assist project provisioned on that endpoint.

Solutions

  1. Ensure the account is onboarded before calling loadCodeAssist, or run the onboardUser step first.
  2. Inspect the raw response body to see if the project id lives under a different field name and extend the extractor.
  3. Retry with a different endpoint URL; only the final empty result is terminal.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at open-sse/services/antigravityProjectBootstrap.ts:151 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/1aa9e21cbedfdd05. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/services/antigravityProjectBootstrap.ts:151

          ? raw.trim()
          : raw &&
              typeof raw === "object" &&
              typeof (raw as Record<string, unknown>).id === "string"
            ? ((raw as Record<string, unknown>).id as string).trim()
            : "";

      const tierId = extractCodeAssistOnboardTierId(data) || DEFAULT_TIER_ID;

      if (projectId) {
        return { projectId, tierId };
      }

      // Continue to next URL if available — a different endpoint might
      // have the project. Only return empty when this is the last URL.
      if (i === urls.length - 1) {
        return { projectId: null, tierId };
      }
      console.warn(
        `[models] antigravity loadCodeAssist at ${url} returned no project id — 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 loadCodeAssist threw for ${url}: ${msg} — trying next`);
    }
  }
  return { projectId: null, tierId: DEFAULT_TIER_ID };
}

/**
 * Attempt onboardUser to create a Cloud Code project for the account.
 * Called when loadCodeAssist returns no project — the account has never
 * been onboarded. Returns true if any endpoint reports success.
 */

View on GitHub (pinned to a179ffed5b)