{"record":{"id":"d3a747a6af7d38d8","repo":"DioxusLabs/dioxus","slug":"error-connecting-to-template-repository-try-cloni","errorCode":null,"errorMessage":"Error connecting to template repository. Try cloning the template manually or add `dioxus` to a `cargo new` project.","messagePattern":"Error connecting to template repository\\. Try cloning the template manually or add `dioxus` to a `cargo new` project\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/create.rs","lineNumber":280,"sourceCode":"                if res.is_ok() {\n                    return Ok(());\n                }\n                tokio::time::sleep(std::time::Duration::from_millis(2000)).await;\n            },\n            _ = tokio::time::sleep(std::time::Duration::from_millis(if x == 1 { 500 } else { 2000 })) => {}\n        }\n        if x == 0 {\n            eprintln!(\n                \"{GLOW_STYLE}warning{GLOW_STYLE:#}: Waiting for {LINK_STYLE}https://github.com/dioxuslabs{LINK_STYLE:#}...\"\n            )\n        } else {\n            eprintln!(\n                \"{GLOW_STYLE}warning{GLOW_STYLE:#}: ({x}/5) Taking a while, maybe your internet is down?\"\n            );\n        }\n    }\n\n    bail!(\n        \"Error connecting to template repository. Try cloning the template manually or add `dioxus` to a `cargo new` project.\"\n    )\n}\n\n// todo: re-enable these tests with better parallelization\n//\n// #[cfg(test)]\n// pub(crate) mod tests {\n//     use escargot::{CargoBuild, CargoRun};\n//     use std::sync::LazyLock;\n//     use std::fs::{create_dir_all, read_to_string};\n//     use std::path::{Path, PathBuf};\n//     use std::process::Command;\n//     use tempfile::tempdir;\n//     use toml::Value;\n\n//     static BINARY: LazyLock<CargoRun> = LazyLock::new(|| {\n//         CargoBuild::new()","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/create.rs#L262-L298","documentation":"Connectivity guard in check_connectivity (called from create): after retrying a GitHub probe with sleeps (and printing waiting warnings across up to 5 attempts), the connection to the template repository still could not be established, so fetching templates cannot continue. This fires when network access to github.com/dioxuslabs is unavailable, and the message offers manual cloning as the workaround.","triggerScenarios":"Thrown at packages/cli/src/cli/create.rs:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The template repository is unreachable. Check the network, clone the template manually, or add dioxus to a cargo new project."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}