diegosouzapw/OmniRoute · error

Failed to fetch SKILL.md: ${res.status} (${url})

Error message

Failed to fetch SKILL.md: ${res.status} (${url})

What it means

Error "Failed to fetch SKILL.md: ${res.status} (${url})" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/skills/skillssh.ts:67

    clearTimeout(timeout);
  }
}

/**
 * Fetch SKILL.md content from GitHub for a skills.sh skill.
 *
 * @param source - GitHub "owner/repo" (e.g. "supabase/agent-skills")
 * @param skillId - Skill name (last segment of the full id, e.g. "supabase-postgres-best-practices")
 */
export async function fetchSkillMd(source: string, skillId: string): Promise<string> {
  const url = `${GITHUB_RAW_BASE}/${source}/main/skills/${skillId}/SKILL.md`;
  const controller = new AbortController();
  const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);

  try {
    const res = await fetch(url, { signal: controller.signal });
    if (!res.ok) {
      throw new Error(`Failed to fetch SKILL.md: ${res.status} (${url})`);
    }
    return await res.text();
  } finally {
    clearTimeout(timeout);
  }
}

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/skills/skillssh.ts:67 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/7a7130b888ee6afe. Report an issue: GitHub.