Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting 404 while downloading the zip file from our application

Monish Kandriga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 7, 2025

we are using authorization token and trying to download a zip file from bitbucket repository (used api endpoint, please see sample below), and we are getting a 404 error (when trying to download the file using httpsclient from our application)

We are able to validate the user_email:token and bitbucket api url by using the curl command. Able to download the zip file using the curl command.

Sample api endpoint: 

https://api.bitbucket.org/2.0/repositories/{workspace}/{repository}/src/master/{file_name.zip}

Working curl command:
curl -u "$BB_USERNAME:$BB_TOKEN" \
-L \
-o file_name.zip \
https://api.bitbucket.org/2.0/repositories/{workspace}/{repository}/src/master/{file_name.zip}

Could you please review and let me know your comments?

Thanks,
Monish

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events