diegosouzapw/OmniRoute · error · Error
res.status === 403 ? t("apiKeyRevealDisabled") : t("apiKeyRe
Error message
res.status === 403 ? t("apiKeyRevealDisabled") : t("apiKeyRevealFailed", { status: res.status }) What it means
Error "res.status === 403 ? t("apiKeyRevealDisabled") : t("apiKeyRevealFailed", { status: res.status })" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:248
if (tryingEndpoint === key) {
setTryingEndpoint(null);
setTryResult(null);
return;
}
setTryingEndpoint(key);
setTryResult(null);
setTryBody(generateExampleBody(ep));
};
const revealSelectedApiKey = async () => {
if (!selectedApiKey) return "";
if (revealedApiKeys[selectedApiKey.id]) return revealedApiKeys[selectedApiKey.id];
const res = await fetch(`/api/keys/${encodeURIComponent(selectedApiKey.id)}/reveal`, {
credentials: "same-origin",
});
if (!res.ok) {
throw new Error(
res.status === 403
? t("apiKeyRevealDisabled")
: t("apiKeyRevealFailed", { status: res.status })
);
}
const data = await res.json();
if (!data?.key || typeof data.key !== "string") {
throw new Error(t("apiKeyRevealInvalid"));
}
setRevealedApiKeys((current) => ({ ...current, [selectedApiKey.id]: data.key }));
return data.key;
};
const executeTryIt = async (ep: Endpoint) => {
setTrying(true);
try {
const headers: Record<string, string> = {};
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/ApiEndpointsTab.tsx:248 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/b134315a21aa1bce.
Report an issue: GitHub.