tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
991 stars 278 forks source link

[Stronghold] libsodium-sys-stable failed downloading. (connection timeout) #1940

Open on1force opened 1 month ago

on1force commented 1 month ago

I don't really know if this is on Plugin side or the external crate it self.. the culprit is

#[cfg(any(windows, feature = "fetch-latest"))]
    {
        let baseurl = "http://download.libsodium.org/libsodium/releases";
        let agent = ureq::AgentBuilder::new()
            .try_proxy_from_env(true)
            .timeout(std::time::Duration::from_secs(300))
            .build();
        let response = agent.get(&format!("{}/{}", baseurl, filename)).call();
        response
            .unwrap()
            .into_reader()
            .read_to_end(&mut archive_bin)
            .unwrap(); // <= this one
        File::create(&filename)
            .unwrap()
            .write_all(&archive_bin)
            .unwrap();

        let response = agent
            .get(&format!("{}/{}", baseurl, signature_filename))
            .call();
        let mut signature_bin = vec![];
        response
            .unwrap()
            .into_reader()
            .read_to_end(&mut signature_bin)
            .unwrap();
        File::create(&signature_filename)
            .unwrap()
            .write_all(&signature_bin)
            .unwrap();
    }

I just follow the plugin docs and got that error..

FabianLars commented 1 month ago

Can you share the full error you're seeing? Please also share the output of the tauri info command?

Could this be an issue with your system proxy (if any)?