diegosouzapw/OmniRoute · error
GROK_ERROR
GROK_ERROR
Error message
chunk.error
What it means
Error "chunk.error" thrown in diegosouzapw/OmniRoute.
Source
Thrown at open-sse/executors/grok-web.ts:563
eventStream: ReadableStream<Uint8Array>,
model: string,
cid: string,
created: number,
isThinkingModel: boolean,
toolRegistry: GrokToolRegistry,
signal?: AbortSignal | null
): Promise<Response> {
let fullContent = "";
let fingerprint = "";
const thinkingParts: string[] = [];
for await (const chunk of extractContent(eventStream, isThinkingModel, toolRegistry, signal)) {
if (chunk.fingerprint) fingerprint = chunk.fingerprint;
if (chunk.error) {
return new Response(
JSON.stringify({
error: { message: chunk.error, type: "upstream_error", code: "GROK_ERROR" },
}),
{ status: 502, headers: { "Content-Type": "application/json" } }
);
}
if (chunk.thinking) {
thinkingParts.push(chunk.thinking);
continue;
}
if (chunk.toolCalls) {
return new Response(
JSON.stringify({
id: cid,
object: "chat.completion",
created,
model,
system_fingerprint: fingerprint || null,
choices: [
{View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at open-sse/executors/grok-web.ts:563 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/c421b0d705918aa9.
Report an issue: GitHub.