nix-software-center icon indicating copy to clipboard operation
nix-software-center copied to clipboard

Stuck on Loading...

Open iopq opened this issue 2 years ago • 3 comments

In my terminal I get an error message

ERROR nix_software_center::ui::windowloading > Error getting NixOS pkgs: error sending request for url (https://channels.nixos.org/nixos-unstable): operation timed out

I connect to the internet through a SOCKS proxy, does this application actually use $http_proxy to make its connection?

iopq avatar Dec 05 '22 19:12 iopq

The application does need to pull data from https://channels.nixos.org/ https://releases.nixos.org/ https://github.com/snowflakelinux/nix-data-db and https://github.com/snowflakelinux/nixpkgs-version-data. It does so using the reqwest library, not sure if that might be causing the issue with your proxy

vlinkz avatar Jan 10 '23 23:01 vlinkz

https://github.com/seanmonstar/reqwest/pull/339

I'm guessing you need to read the $http_proxy env var yourself, then create the request with the URI of that proxy

iopq avatar Jan 12 '23 15:01 iopq

I have confirmed that using ip tables makes everything work, and switching the ip tables off makes it not work

doesn't work with setting the proxy in gnome either

iopq avatar Apr 12 '23 13:04 iopq