diegosouzapw/OmniRoute · error · Error
Failed to fetch challenge
Error message
Failed to fetch challenge: ${res.status} What it means
fetchChallenge requested the TinyCMS anti-bot challenge endpoint and got a non-OK status, so no challenge object could be obtained to continue the session bootstrap. The status code is embedded to distinguish 4xx (blocked/invalid uuid) from 5xx (service trouble).
Solutions
- Retry the challenge fetch with backoff on 5xx
- Regenerate the uuid if the endpoint rejects it with 4xx
- Check headers/User-Agent against current anti-bot requirements
Defensive patterns
Strategy: retry
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.
Appendix: 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)