zed-industries/zed · error · anyhow::Error

GitHub returned {} while fetching the skill

Error message

GitHub returned {} while fetching the skill

What it means

Generic branch of github_fetch_error(): a GitHub API request during skill import returned an HTTP status other than 404, so the fetch failed. The status code is embedded and the truncated response body is appended when non-empty.

Source

Thrown at crates/settings_ui/src/pages/skill_creator.rs:1062

fn github_fetch_error(status: StatusCode, body: &[u8]) -> anyhow::Error {
    let mut message = if status == StatusCode::NOT_FOUND {
        "GitHub returned 404 while fetching the skill; no repository exists at this URL, or it is private"
            .to_string()
    } else {
        format!(
            "GitHub returned {} while fetching the skill",
            status.as_u16()
        )
    };

    let response_text = truncated_response_body_for_error(body);
    if !response_text.is_empty() {
        message.push_str(": ");
        message.push_str(&response_text);
    }

    anyhow!(message)
}

pub(crate) fn is_supported_skill_url(input: &str) -> bool {
    github_raw_url(input).is_ok()
}

fn github_raw_url(input: &str) -> Result<String> {
    let url = Url::parse(input.trim()).context("Enter a valid GitHub URL")?;
    if url.scheme() != "https" {
        anyhow::bail!("GitHub skill URLs must use https://");
    }

    let host = url
        .host_str()
        .ok_or_else(|| anyhow!("Enter a valid GitHub URL"))?;
    let path_segments = url
        .path_segments()
        .ok_or_else(|| anyhow!("Enter a valid GitHub URL"))?

View on GitHub (pinned to 9d272b0363)

Solutions

  1. Check rate limits and token validity
  2. Retry the import later
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at crates/settings_ui/src/pages/skill_creator.rs:1062 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@9d272b0363 (2026-08-20). Data as JSON: /api/errors/a60d76ee10d88381. Report an issue: GitHub.