diegosouzapw/OmniRoute · error
Unsupported HTTP method: ${method}
Error message
Unsupported HTTP method: ${method} What it means
Error "Unsupported HTTP method: ${method}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/skills/builtins.ts:280
headers: rawHeaders,
body,
timeoutMs,
maxBytes,
} = input as {
url: string;
method?: string;
headers?: Record<string, unknown>;
body?: unknown;
timeoutMs?: number;
maxBytes?: number;
};
if (!url || typeof url !== "string") {
throw new Error("Missing required field: url");
}
const normalizedMethod = method.toUpperCase();
if (!ALLOWED_HTTP_METHODS.has(normalizedMethod)) {
throw new Error(`Unsupported HTTP method: ${method}`);
}
const headers = sanitizeHeaders(rawHeaders);
const response = await safeOutboundFetch(url, {
method: normalizedMethod,
headers,
body:
normalizedMethod === "GET" || normalizedMethod === "HEAD"
? undefined
: normalizeBody(body, headers),
timeoutMs: normalizePositiveInteger(timeoutMs, 10_000, 60_000),
allowRedirect: false,
retry: false,
guard: "public-only",
});
const limit = normalizePositiveInteger(
maxBytes,
MAX_HTTP_RESPONSE_BYTES,View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/skills/builtins.ts:280 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/a14e95e8eb18ffe6.
Report an issue: GitHub.