diegosouzapw/OmniRoute · error · Error
Claude Web browser request body is missing
Error message
Claude Web browser request body is missing
What it means
Guard in the captureCompletion route handler: route.request().postData() returned null/empty for the intercepted completion POST. The browser page issued the matched request without a body, which breaks the JSON payload capture needed to replay/inspect the Claude Web completion call.
Solutions
- Retry the request — an empty body usually means the interception caught a preflight or aborted request rather than the real completion POST
- Verify the pagewarmup/cookie state so claude.ai actually serializes the payload before sending
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at open-sse/executors/claude-web/browserTransport.ts:386 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/1d0abfcb196b7868.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/claude-web/browserTransport.ts:386
segments[5] !== "completion"
) {
return false;
}
try {
return decodeURIComponent(segments[2]) === request.organizationId;
} catch {
return false;
}
};
await page.route(matchesPreparedRoute, async (route) => {
try {
const outgoing = route.request();
if (outgoing.method() !== "POST" || !matchesPreparedRoute(new URL(outgoing.url()))) {
throw new Error("Claude Web browser interception target changed");
}
const rawPayload = outgoing.postData();
if (!rawPayload) throw new Error("Claude Web browser request body is missing");
const uiPayload = JSON.parse(rawPayload) as unknown;
if (!uiPayload || typeof uiPayload !== "object" || Array.isArray(uiPayload)) {
throw new Error("Claude Web browser request body is invalid");
}
const capturedHeaders = await outgoing.allHeaders();
const template = extractBrowserTemplate(uiPayload as Record<string, unknown>);
const merged = mergeClaudeWebBrowserPayload(
uiPayload as Record<string, unknown>,
request.payload
);
await route.abort();
rememberBrowserTemplate(poolKey, template, context);
resolveInterception?.(makeBrowserFetchInput(request, merged, capturedHeaders));
} catch {
await route.abort().catch(() => {});
rejectInterception?.(new Error("Claude Web browser request interception failed"));
}
});View on GitHub (pinned to a179ffed5b)