Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
on1force opened this issue Oct 15, 2024 · 1 comment
Open
Labels
bug Something isn't working plugin: stronghold

Comments

@on1force
Copy link

on1force commented Oct 15, 2024

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 FabianLars added bug Something isn't working plugin: stronghold labels Oct 15, 2024
@FabianLars
Copy link
Member

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin: stronghold
Projects
None yet
Development

No branches or pull requests

2 participants