diegosouzapw/OmniRoute · error · Error

Browser login is not supported for provider

Error message

Browser login is not supported for provider '${providerId || "unknown"}'

What it means

Registry miss in startSession: the connection's provider id (resolved from the record, or 'unknown' when provider is not a plain string) has no entry in the VNC provider registry (getVncProvider). Means browser login is simply not implemented/configured for that provider — no login URL, origin, or harvest recipe exists — so a session cannot be seeded.

Solutions

  1. Pick a provider that supports browser login (one listed in the VNC provider registry)
  2. If this provider should be supported, add its VncProviderEntry config (login origin, credential mapping)
  3. Show the unsupported-provider state in the UI instead of a Setup button
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/lib/vncSession/service.ts:167 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/1b86202b641ab193. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/vncSession/service.ts:167

  for (const line of result.out.split(/\r?\n/)) {
    const match = line.trim().match(/:(\d+)$/);
    if (match) return Number(match[1]);
  }
  throw new Error(`Docker did not publish container port ${containerPort}`);
}

export async function startSession(connectionId: string): Promise<VncSession> {
  if (await isConnectionUnavailableToAuxiliaryActivity(connectionId))
    throw new Error("Browser login is unavailable for managed lease connections");

  await reconcileStaleContainers();

  const connection = await getProviderConnectionById(connectionId);
  if (!connection) throw new Error("Provider connection not found");
  const providerId = typeof connection.provider === "string" ? connection.provider : "";
  const provider = getVncProvider(providerId);
  if (!provider) {
    throw new Error(`Browser login is not supported for provider '${providerId || "unknown"}'`);
  }

  const existing = findActiveSessionForConnection(connectionId);
  if (existing) return existing;
  if (SESSIONS.size >= VNC_CONFIG.maxSessions) {
    throw new Error(`Maximum ${VNC_CONFIG.maxSessions} concurrent browser-login sessions reached`);
  }

  const sessionId = randomUUID();
  const containerName = sessionKey(sessionId);
  const profileDir = createProfileDir(connectionId, sessionId);
  const state: VncSession = {
    sessionId,
    connectionId,
    providerId,
    containerName,
    profileDir,
    cdpPort: 0,

View on GitHub (pinned to a179ffed5b)