{"record":{"id":"bfb782b3a4eeee94","repo":"diegosouzapw/OmniRoute","slug":"models-antigravity-loadcodeassist-failed-at-ur","errorCode":null,"errorMessage":"[models] antigravity loadCodeAssist failed at ${url} (${response.status}) — trying next","messagePattern":"\\[models\\] antigravity loadCodeAssist failed at (.+?) \\((.+?)\\) — trying next","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"open-sse/services/antigravityProjectBootstrap.ts","lineNumber":121,"sourceCode":"  signal?: AbortSignal\n): Promise<LoadCodeAssistResult> {\n  const urls = getAntigravityLoadCodeAssistUrls();\n  const headers = getAntigravityContentHeaders(clientProfile, accessToken);\n\n  for (let i = 0; i < urls.length; i++) {\n    const url = urls[i];\n    if (signal?.aborted) throw signal.reason;\n    try {\n      const timeoutSignal = AbortSignal.timeout(BOOTSTRAP_TIMEOUT_MS);\n      const response = await fetchImpl(url, {\n        method: \"POST\",\n        headers,\n        body: JSON.stringify({ metadata: getAntigravityLoadCodeAssistMetadata() }),\n        signal: signal ? AbortSignal.any([signal, timeoutSignal]) : timeoutSignal,\n      });\n\n      if (!response.ok) {\n        console.warn(\n          `[models] antigravity loadCodeAssist failed at ${url} (${response.status}) — trying next`\n        );\n        continue;\n      }\n\n      const data = (await response.json()) as Record<string, unknown>;\n\n      // cloudaicompanionProject may be a plain string or an object with an id field.\n      const raw = data.cloudaicompanionProject;\n      const projectId =\n        typeof raw === \"string\"\n          ? raw.trim()\n          : raw &&\n              typeof raw === \"object\" &&\n              typeof (raw as Record<string, unknown>).id === \"string\"\n            ? ((raw as Record<string, unknown>).id as string).trim()\n            : \"\";\n","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/services/antigravityProjectBootstrap.ts#L103-L139","documentation":"Retry-chain warning during antigravity project bootstrap: the POST to loadCodeAssist at one of several candidate Google endpoints returned a non-OK HTTP status (after a 15s AbortSignal timeout window). The loop logs this and tries the next URL; only when all URLs fail does bootstrap fail. Cause is usually endpoint-specific outage, 4xx auth/scope rejection, or timeout.","triggerScenarios":"Thrown at open-sse/services/antigravityProjectBootstrap.ts:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the failing status is 401/403 (token expired or missing scopes) vs 5xx (Google-side outage) and act accordingly.","Refresh the antigravity OAuth access token and retry.","Verify network/proxy reachability to the Google Code Assist endpoints; increase BOOTSTRAP_TIMEOUT_MS if timeouts dominate.","If all URLs fail, surface the aggregate error to the user instead of a partial bootstrap."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}