diegosouzapw/OmniRoute · error · Error
t("apiKeyRequired")
Error message
t("apiKeyRequired") What it means
Error "t("apiKeyRequired")" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:279
const executeTryIt = async (ep: Endpoint) => {
setTrying(true);
try {
const headers: Record<string, string> = {};
// Add Authorization header if endpoint requires auth
if (ep.security) {
let apiKeyForRequest = "";
if (useManualKey) {
apiKeyForRequest = manualApiKey;
} else if (selectedApiKey) {
apiKeyForRequest = await revealSelectedApiKey();
}
if (apiKeyForRequest) {
headers["Authorization"] = `Bearer ${apiKeyForRequest}`;
} else {
throw new Error(t("apiKeyRequired"));
}
}
const res = await fetch("/api/openapi/try", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
method: ep.method,
path: ep.path,
headers,
body: tryBody ? JSON.parse(tryBody) : undefined,
}),
});
if (res.ok) setTryResult(await res.json());
else {
const err = await res.json().catch(() => ({}));
throw new Error(err.error || t("requestFailed", { status: res.status }));
}View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:279 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/dfe175b2c5b891f2.
Report an issue: GitHub.