diegosouzapw/OmniRoute · error · Error
Failed to load CLI keys
Error message
Failed to load CLI keys
What it means
Error "Failed to load CLI keys" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/endpoint/VscodeTokenAliasCard.tsx:38
}: Readonly<{ className?: string; variant?: "highlight" | "catalog" }>) {
const t = useTranslations("endpoint");
const [cliApiKeys, setCliApiKeys] = useState<EndpointApiKeySummary[]>([]);
const [keysLoading, setKeysLoading] = useState(true);
const [keysError, setKeysError] = useState(false);
const { copied, copy } = useCopyToClipboard();
const displayBaseUrl = useDisplayBaseUrl();
useEffect(() => {
let cancelled = false;
const loadCliApiKeys = async () => {
setKeysLoading(true);
setKeysError(false);
try {
const res = await fetch("/api/cli-tools/keys");
if (!res.ok) {
throw new Error("Failed to load CLI keys");
}
const data = await res.json();
if (!cancelled) {
setCliApiKeys(data.keys || []);
}
} catch {
if (!cancelled) {
setCliApiKeys([]);
setKeysError(true);
}
} finally {
if (!cancelled) {
setKeysLoading(false);
}
}
};
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/endpoint/VscodeTokenAliasCard.tsx:38 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/c7afe50a3cf4e0e1.
Report an issue: GitHub.