-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
hplipWIthPlugin: curl for hplip-3.24.4-plugin.run returns error 403 #391727
Comments
this patch fixes the problem, but I am not sure if we want to hardcode user agent
|
I was able to fix this by overriding the user agent as mentioned earlier. |
Should be fixed by #391529 |
FWIW, once you prefetch the file into the nix store (e.g. by |
as ad-hoc solution this workaround with manual prefetch works for me as well. |
Also used the ad-hoc solution via nix-repl: pkgs.fetchurl {
url = "https://developers.hp.com/sites/default/files/hplip-3.24.4-plugin.run";
hash = "sha256-Hzxr3SVmGoouGBU2VdbwbwKMHZwwjWnI7P13Z6LQxao=";
curlOptsList = [
"-A"
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
];
} |
Nixpkgs version
Describe the bug
hplip plugin fetch step fails with error 403 when trying to download https://developers.hp.com/sites/default/files/hplip-3.24.4-plugin.run using curl with default user-agent.
To fix this set user-agent to
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
or download plugin from https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/Steps to reproduce
Expected behaviour
install hplip with plugin and enter to shell
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.13.7, NixOS, 24.11 (Vicuna), 24.11.715880.b75693fb46bf
yes
yes
nix-env (Nix) 2.24.12
"unstable"
"nixos-24.11"
/nix/var/nix/profiles/per-user/root/channels/nixos
Notify maintainers
@ttuegel
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: