diegosouzapw/OmniRoute · error
Vision API error ${response.status}: ${errorText}
Error message
Vision API error ${response.status}: ${errorText} What it means
Error "Vision API error ${response.status}: ${errorText}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/guardrails/visionBridgeHelpers.ts:842
image_url: {
url: normalizedImageInput,
detail: "high",
},
},
{ type: "text", text: config.prompt },
],
},
],
max_tokens: 300,
}),
});
}
clearTimeout(timeoutId);
if (!response.ok) {
const errorText = await response.text().catch(() => "Unknown error");
throw new Error(`Vision API error ${response.status}: ${errorText}`);
}
const data = await readVisionResponseBody(response);
if (isAnthropic) {
// Anthropic response format: { content: [{ type: "text", text: "..." }] }
const anthropicData = data as {
content?: Array<{ type?: string; text?: string }>;
error?: { message?: string };
};
if (anthropicData.error) {
throw new Error(
`Vision API error: ${anthropicData.error.message || JSON.stringify(anthropicData.error)}`
);
}
const textContent = anthropicData.content?.find((c) => c.type === "text");View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/guardrails/visionBridgeHelpers.ts:842 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/21edf8d9f17e4ae3.
Report an issue: GitHub.