zed-industries/zed · error

GitHub skill URLs must use https://

Error message

GitHub skill URLs must use https://

What it means

Raised in github_raw_url when the parsed URL's scheme is anything other than https (typically http://). Skills are only imported over secure connections, so the URL is rejected before any host/path validation runs.

Source

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

    };

    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"))?
        .collect::<Vec<_>>();

    match host {
        "github.com" => github_blob_raw_url(&path_segments),
        "raw.githubusercontent.com" => {
            ensure_markdown_path(&path_segments)?;
            Ok(url.into())
        }
        _ => anyhow::bail!("Paste a GitHub .md URL"),
    }

View on GitHub (pinned to 9d272b0363)

Solutions

  1. Replace http:// with https:// in the pasted GitHub URL
  2. Use the standard github.com or raw.githubusercontent.com URL copied from the browser
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/settings_ui/src/pages/skill_creator.rs:1072 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/f96619097893256c. Report an issue: GitHub.