diegosouzapw/OmniRoute · error · Error

Failed to fetch challenge: ${res.status}

Error message

Failed to fetch challenge: ${res.status}

What it means

Error "Failed to fetch challenge: ${res.status}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/executors/tinycms.ts:40

    lastIpFetch = now;
    return publicIp;
  } catch {
    return publicIp || "127.0.0.1";
  }
}

async function fetchChallenge(uuid: string): Promise<any> {
  const res = await fetch(CHALLENGE_URL, {
    method: "GET",
    headers: {
      uuid: uuid,
      "x-origin": "https://gov.freegpt.win",
      Accept: "application/json",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36",
    },
  });
  if (!res.ok) {
    throw new Error(`Failed to fetch challenge: ${res.status}`);
  }
  return await res.json();
}

export class TinyCmsExecutor extends BaseExecutor {
  constructor() {
    super("tinycms-web", { id: "tinycms-web", baseUrl: CHAT_URL });
  }

  async execute(input: ExecuteInput): Promise<ExecutorExecuteResult> {
    const { body, credentials, signal } = input;
    const bodyObj = (body || {}) as Record<string, any>;

    // TinyCMS uses 'uuid' header for identification
    const uuid = String(credentials?.apiKey ?? "").trim();
    if (!uuid || !uuid.startsWith("R")) {
      return makeErrorResult(
        401,

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/executors/tinycms.ts:40 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/3d7ee5d67ee93e9f. Report an issue: GitHub.