Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

wget on repository tag returning 404

I'm trying to deploy code to our staging environment as usual and the download file for the version is returning 404. I have seen the other posts around updating GoLang but I can't see anywhere in the project where we use GoLang.


Screenshot 2022-06-23 at 10.54.03.png


Thanks for any help.

1 answer

1 accepted

1 vote
Answer accepted

Hi @aaron_mchugh and welcome to the community!

We have recently made a change where we return 404 instead of 403 code for unauthenticated users, which has caused an issue in downloading the archive from Bitbucket using wget.

The wget command always waits for the 403 challenge from the server before it sends the credentials to the server.
However, with the recent changes, our server initially sends the 404 status to the client and wget doesn't send credentials later on.

We have two suggestions to work around this issue:

1. You can use the --auth-no-challenge flag in the wget command as follows:

wget --user=BitbucketUsername --password=AppPassword --auth-no-challenge

2. Alternatively, you can download the file using curl:

curl -u BitbucketUsername:AppPassword -o master.tar.gz

Kind regards,

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,119 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you