Vunny
February 12, 2024, 7:11am
1
Hi All,
I was facing error while trying to install postman package using nix-shell -p postman
Getting below error:
curl: (22) The requested URL returned error: 404
error: cannot download postman-10.18.6.tar.gz from any mirror
Any help is appreciated. Thanks
APCodes
February 12, 2024, 12:30pm
2
Hi, welcome to NixOS discourse!
There is already a lengthy discussion on GitHub regarding this issue:
opened 08:57AM - 05 Oct 23 UTC
0.kind: regression
0.kind: build failure
### Describe the bug
Postman cannot be downloaded and installed from nix packag… es.
### Steps To Reproduce
Steps to reproduce the behavior:
1. Open terminal
2. Type `nix-shell -p postman` (this also happens if postman is added in the config file)
This results in the following error:
```
these 2 derivations will be built:
/nix/store/0ryvqmib5dp3znj20qy9zq6dfsapw0ny-postman-10.12.0.tar.gz.drv
/nix/store/jlb4liv4lr3zspn3043d0zmyi3wh723y-postman-10.12.0.drv
building '/nix/store/0ryvqmib5dp3znj20qy9zq6dfsapw0ny-postman-10.12.0.tar.gz.drv'...
trying https://dl.pstmn.io/download/version/10.12.0/linux64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (22) The requested URL returned error: 404
error: cannot download postman-10.12.0.tar.gz from any mirror
error: builder for '/nix/store/0ryvqmib5dp3znj20qy9zq6dfsapw0ny-postman-10.12.0.tar.gz.drv' failed with exit code 1;
last 7 log lines:
>
> trying https://dl.pstmn.io/download/version/10.12.0/linux64
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
> curl: (22) The requested URL returned error: 404
> error: cannot download postman-10.12.0.tar.gz from any mirror
For full logs, run 'nix log /nix/store/0ryvqmib5dp3znj20qy9zq6dfsapw0ny-postman-10.12.0.tar.gz.drv'.
error: 1 dependencies of derivation '/nix/store/jlb4liv4lr3zspn3043d0zmyi3wh723y-postman-10.12.0.drv' failed to build
```
### Expected behavior
The command should work.
### Screenshots
### Additional context
### Notify maintainers
@johnrichardrinehart @evanjs @tricktron @Craftzman7
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
### Metadata
```console
[sayantan@nixos:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.1.51, NixOS, 23.05 (Stoat), 23.05.20230910.d44c0ac`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.13.5`
- channels(root): `"home-manager-23.05.tar.gz, nixos-23.05"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
```
1 Like
Vunny
February 12, 2024, 12:59pm
3
Thanks @APCodes for the link.
APCodes
February 12, 2024, 1:07pm
4
You’re welcome! Depending on your needs to can also try alternatives to Postman, since that seems to be hard to get to work at the moment. Insomnia
and Bruno
come to mind. They are both in nixpkgs
.
Edit: From reading the discussion on GitHub it seems someone created an overlay to pull in the older Postman file from archive.org
… which is an idea I wouldn’t have had immediatly, but might work after all
So that would be the way to go if you really need Postman an nothing else.
1 Like
Vunny
February 12, 2024, 1:25pm
5
Sure @APCodes , thank again for mentioning alternatives. I can try those as well if it serves my purpose.