{"record":{"id":"a60d76ee10d88381","repo":"zed-industries/zed","slug":"github-returned-while-fetching-the-skill","errorCode":null,"errorMessage":"GitHub returned {} while fetching the skill","messagePattern":"GitHub returned (.+?) while fetching the skill","errorType":"http","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/settings_ui/src/pages/skill_creator.rs","lineNumber":1062,"sourceCode":"\nfn github_fetch_error(status: StatusCode, body: &[u8]) -> anyhow::Error {\n    let mut message = if status == StatusCode::NOT_FOUND {\n        \"GitHub returned 404 while fetching the skill; no repository exists at this URL, or it is private\"\n            .to_string()\n    } else {\n        format!(\n            \"GitHub returned {} while fetching the skill\",\n            status.as_u16()\n        )\n    };\n\n    let response_text = truncated_response_body_for_error(body);\n    if !response_text.is_empty() {\n        message.push_str(\": \");\n        message.push_str(&response_text);\n    }\n\n    anyhow!(message)\n}\n\npub(crate) fn is_supported_skill_url(input: &str) -> bool {\n    github_raw_url(input).is_ok()\n}\n\nfn github_raw_url(input: &str) -> Result<String> {\n    let url = Url::parse(input.trim()).context(\"Enter a valid GitHub URL\")?;\n    if url.scheme() != \"https\" {\n        anyhow::bail!(\"GitHub skill URLs must use https://\");\n    }\n\n    let host = url\n        .host_str()\n        .ok_or_else(|| anyhow!(\"Enter a valid GitHub URL\"))?;\n    let path_segments = url\n        .path_segments()\n        .ok_or_else(|| anyhow!(\"Enter a valid GitHub URL\"))?","sourceCodeStart":1044,"sourceCodeEnd":1080,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/settings_ui/src/pages/skill_creator.rs#L1044-L1080","documentation":"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.","triggerScenarios":"Thrown at crates/settings_ui/src/pages/skill_creator.rs:1062 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check rate limits and token validity","Retry the import later"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}