snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
560 stars 16 forks source link

Stuck on Loading... #14

Open iopq opened 1 year ago

iopq commented 1 year ago

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?

vlinkz commented 1 year ago

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

iopq commented 1 year ago

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 commented 1 year ago

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