diegosouzapw/OmniRoute · error
LEASE_CAPACITY_UNAVAILABLE
LEASE_CAPACITY_UNAVAILABLE
Error message
Exclusive managed session capacity is temporarily unavailable
What it means
Error "Exclusive managed session capacity is temporarily unavailable" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/sse/services/leaseContext.ts:120
? "LEASE_FENCE_STALE"
: selection.leaseConnectionMismatch
? "LEASE_CONNECTION_MISMATCH"
: null;
if (code)
return buildManagedLeaseErrorResponse(
new LeaseContextError(409, code, code.replaceAll("_", " "))
);
if (!selection.waitingForCapacity) return null;
const expiryMs = Date.parse(selection.retryAfter ?? "");
const retryAfterSeconds = Number.isFinite(expiryMs)
? Math.min(3600, Math.max(1, Math.ceil((expiryMs - Date.now()) / 1000)))
: 1;
return new Response(
JSON.stringify({
state: "WAITING_FOR_CAPACITY",
error: {
type: "lease_error",
code: "LEASE_CAPACITY_UNAVAILABLE",
message: "Exclusive managed session capacity is temporarily unavailable",
},
reason: "NO_FREE_ELIGIBLE_CONNECTION",
retryAfter: retryAfterSeconds,
eligibleCount: Math.max(0, selection.eligibleCount ?? 0),
freeCount: Math.max(0, selection.freeCount ?? 0),
}),
{
status: 429,
headers: {
"Content-Type": "application/json",
"Retry-After": String(retryAfterSeconds),
},
}
);
}
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/sse/services/leaseContext.ts:120 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/c47652607f5f4a0d.
Report an issue: GitHub.