diegosouzapw/OmniRoute · error

Too many pending authorization requests. Please try again…

Error message

Too many pending authorization requests. Please try again later.

What it means

A sentinel error raised in kilocode's requestDeviceCode when the initiateUrl POST returns HTTP 429. It signals Kilocode's device-authorization initiation endpoint is rate-limiting pending authorization requests — too many device flows are open (per client/IP) and new ones must wait.

Solutions

  1. Wait for the rate-limit window to clear (pending device flows expire on their own, typically within minutes) and retry
  2. Complete or cancel any pending Kilocode authorization attempts before starting a new one
  3. Honor any Retry-After header from the 429 response if present
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/lib/oauth/providers/kilocode.ts:16 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/0ecd55304d611a42. Report an issue: GitHub.

Appendix: source

Thrown at src/lib/oauth/providers/kilocode.ts:16

import { KILOCODE_CONFIG } from "../constants/oauth";

export const kilocode = {
  config: KILOCODE_CONFIG,
  flowType: "device_code",
  requestDeviceCode: async (config) => {
    const response = await fetch(config.initiateUrl, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
    });

    if (!response.ok) {
      if (response.status === 429) {
        throw new Error("Too many pending authorization requests. Please try again later.");
      }
      const error = await response.text();
      throw new Error(`Device auth initiation failed: ${error}`);
    }

    const data = await response.json();
    return {
      device_code: data.code,
      user_code: data.code,
      verification_uri: data.verificationUrl,
      verification_uri_complete: data.verificationUrl,
      expires_in: data.expiresIn || 300,
      interval: 3,
    };
  },
  pollToken: async (config, deviceCode) => {
    const response = await fetch(`${config.pollUrlBase}/${deviceCode}`);

View on GitHub (pinned to a179ffed5b)