{"record":{"id":"1aa9e21cbedfdd05","repo":"diegosouzapw/OmniRoute","slug":"models-antigravity-loadcodeassist-at-url-retu","errorCode":null,"errorMessage":"[models] antigravity loadCodeAssist at ${url} returned no project id — trying next","messagePattern":"\\[models\\] antigravity loadCodeAssist at (.+?) returned no project id — trying next","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"open-sse/services/antigravityProjectBootstrap.ts","lineNumber":151,"sourceCode":"          ? 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\n      const tierId = extractCodeAssistOnboardTierId(data) || DEFAULT_TIER_ID;\n\n      if (projectId) {\n        return { projectId, tierId };\n      }\n\n      // Continue to next URL if available — a different endpoint might\n      // have the project. Only return empty when this is the last URL.\n      if (i === urls.length - 1) {\n        return { projectId: null, tierId };\n      }\n      console.warn(\n        `[models] antigravity loadCodeAssist at ${url} returned no project id — trying next`\n      );\n    } catch (error) {\n      if (signal?.aborted || (error instanceof Error && error.name === \"AbortError\")) {\n        throw signal?.reason ?? error;\n      }\n      const msg = error instanceof Error ? error.message : String(error);\n      console.warn(`[models] antigravity loadCodeAssist threw for ${url}: ${msg} — trying next`);\n    }\n  }\n  return { projectId: null, tierId: DEFAULT_TIER_ID };\n}\n\n/**\n * Attempt onboardUser to create a Cloud Code project for the account.\n * Called when loadCodeAssist returns no project — the account has never\n * been onboarded. Returns true if any endpoint reports success.\n */","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/services/antigravityProjectBootstrap.ts#L133-L169","documentation":"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.","triggerScenarios":"Thrown at open-sse/services/antigravityProjectBootstrap.ts:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the account is onboarded before calling loadCodeAssist, or run the onboardUser step first.","Inspect the raw response body to see if the project id lives under a different field name and extend the extractor.","Retry with a different endpoint URL; only the final empty result is terminal."],"exampleFix":null,"handlingStrategy":"fallback","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"}