diegosouzapw/OmniRoute · error · Error
No active Clerk session found — your __client cookie may be…
Error message
No active Clerk session found — your __client cookie may be expired or invalid
What it means
Clerk /v1/client responded 2xx but the sessions array contains no entry with status 'active'. The __client cookie authenticates but its session is suspended/ended, meaning the account side has no usable session — the credential must be refreshed by signing in again.
Solutions
- Sign in to Adapta in a browser to reactivate the session, then update the connection's __client cookie
- If the account was logged out everywhere, create a new session and re-configure the connection credential
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at open-sse/executors/adapta-web.ts:112 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/1b03b8ec3b7f42b0.
Report an issue: GitHub.
Appendix: source
Thrown at open-sse/executors/adapta-web.ts:112
): Promise<string> {
const resp = await fetch(`${ADAPTA_CLERK_URL}/v1/client`, {
headers: {
Cookie: `__client=${clientJwt}`,
"User-Agent": USER_AGENT,
Origin: ADAPTA_APP_URL,
},
signal: signal ?? undefined,
});
if (!resp.ok) {
throw new Error(`Clerk /v1/client returned HTTP ${resp.status} — check your __client cookie`);
}
const body = await resp.json();
const sessions: Array<{ id: string; status: string }> = body?.response?.sessions ?? [];
const active = sessions.find((s) => s.status === "active");
if (!active?.id) {
throw new Error(
"No active Clerk session found — your __client cookie may be expired or invalid"
);
}
log?.info?.("ADAPTA-WEB", `Got session ID: ${active.id}`);
return active.id;
}
/** Step 2: POST /v1/client/sessions/{id}/tokens → fresh short-lived JWT. */
async function refreshSessionJwt(
clientJwt: string,
sessionId: string,
signal?: AbortSignal | null,
log?: ExecuteInput["log"]
): Promise<string> {
const resp = await fetch(`${ADAPTA_CLERK_URL}/v1/client/sessions/${sessionId}/tokens`, {
method: "POST",
headers: {View on GitHub (pinned to a179ffed5b)