Download URL not working

Hi,

I’m trying to download a release that I created, in order to test the URL.

The URL is: https://github.com/Eximchain/BackupLambda/releases/download/0.1/BackupLambda

I can get it to work from Firefox, but if I use wget https://github.com/Eximchain/BackupLambda/releases/download/0.1/BackupLambda I get a 404.

What’s happening, and how do I get it to work?

1 Like

That repository does not appear to be configured as public. You are able to download it with your browser because you have logged into the site with your browser.  If you are okay with setting your repository to be public (anyone would be able to see it), then your unauthenticated wget client would be able to download the release.

3 Likes

My repository is public. It still doesn’t work.

I can clone it from any place. But wget is not working. 

curl -LJO https://github.com/suryadey-1202/test_data/mock_demo.json (working)

With HTTPS:

wget --no-check-certificate --content-disposition https://github.com/suryadey-1202/test_data/mock_demo.json
–2020-03-25 17:09:03-- https://github.com/suryadey-1202/test_data/mock_demo.json
Resolving github.com (github.com)… 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2020-03-25 17:09:04 ERROR 404: Not Found.

wget https://github.com/suryadey-1202/test_data/mock_demo.json
–2020-03-25 17:22:45-- https://github.com/suryadey-1202/test_data/mock_demo.json
Resolving github.com (github.com)… 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2020-03-25 17:22:45 ERROR 404: Not Found.

With HTTP:

wget --no-check-certificate --content-disposition http://github.com/suryadey-1202/test_data/mock_demo.json
–2020-03-25 17:16:02-- http://github.com/suryadey-1202/test_data/mock_demo.json
Resolving github.com (github.com)… 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://github.com/suryadey-1202/test_data/mock_demo.json [following]
–2020-03-25 17:16:02-- https://github.com/suryadey-1202/test_data/mock_demo.json
Connecting to github.com (github.com)|140.82.113.4|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2020-03-25 17:16:02 ERROR 404: Not Found.