{"record":{"id":"674a610b9a4f825d","repo":"earendil-works/pi","slug":"invalid-radius-config-from-gateway","errorCode":null,"errorMessage":"Invalid Radius config from ${gateway}","messagePattern":"Invalid Radius config from (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/ai/src/providers/radius-config.ts","lineNumber":94,"sourceCode":"\tconst trimmed = body.trim();\n\treturn trimmed.length > 512 ? `${trimmed.slice(0, 512)}…` : trimmed;\n}\n\nexport async function loadRadiusGatewayConfig(\n\tgateway: string,\n\tapiKey?: string,\n\tsignal?: AbortSignal,\n): Promise<RadiusGatewayConfig> {\n\tconst headers: Record<string, string> = { accept: \"application/json\" };\n\tif (apiKey) headers.authorization = `Bearer ${apiKey}`;\n\tconst response = await fetch(new URL(\"/v1/config\", gateway), { headers, signal });\n\tif (!response.ok) {\n\t\tthrow new Error(\n\t\t\t`Could not load Radius config from ${gateway}: ${response.status}: ${truncateHttpBody(await response.text())}`,\n\t\t);\n\t}\n\tconst config = sanitizeRadiusGatewayConfig(await response.json());\n\tif (!config) throw new Error(`Invalid Radius config from ${gateway}`);\n\treturn config;\n}\n","sourceCodeStart":76,"sourceCodeEnd":97,"githubUrl":"https://github.com/earendil-works/pi/blob/4af9d21d3b4d664e4a29fcabfec85171077248e3/packages/ai/src/providers/radius-config.ts#L76-L97","documentation":"Error \"Invalid Radius config from ${gateway}\" thrown in earendil-works/pi.","triggerScenarios":"Thrown at packages/ai/src/providers/radius-config.ts:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the gateway config payload; update parsing if the shape changed."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4af9d21d3b4d664e4a29fcabfec85171077248e3","analyzedAt":"2026-08-24T13:07:14.692Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}