diegosouzapw/OmniRoute · error

[DeepSeek-WEB] Rate limited: ${msg}

Error message

[DeepSeek-WEB] Rate limited: ${msg}

What it means

Error "[DeepSeek-WEB] Rate limited: ${msg}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/executors/deepseek-web-with-auto-refresh.ts:177

      const status = result?.response?.status;
      if ((status === 401 || status === 403) && this.retryCount < this.maxRetries) {
        const retried = await this.refreshAndRetry(input);
        return retried ?? result;
      }

      return result;
    } catch (error: unknown) {
      // Defensive: keep handling genuinely thrown failures (e.g. a network error
      // that escapes the base) even though the base normally returns Responses.
      const msg = error instanceof Error ? error.message : String(error);
      const isUnauthorized =
        msg.includes("401") || msg.includes("Unauthorized") || msg.includes("expired");
      if (isUnauthorized && this.retryCount < this.maxRetries) {
        const retried = await this.refreshAndRetry(input);
        if (retried) return retried;
      }
      if (msg.includes("429") || msg.includes("Rate limit")) {
        console.warn("[DeepSeek-WEB] Rate limited:", msg);
      }
      throw error;
    }
  }
}

export const deepseekWebWithAutoRefreshExecutor = new DeepSeekWebWithAutoRefreshExecutor();

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/executors/deepseek-web-with-auto-refresh.ts:177 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/cd770d65c5d7d79f. Report an issue: GitHub.