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:
Hi @Monish Kandriga
Welcome to the community.
Would it be possible for you to confirm if you're using an API token created from your Atlassian account?
Regards,Mark C
Thank you @Mark C .
Yes, I tried using the API token created for
1. the application service account and
2. my account as well.
Curl is working in both cases, but when I call using httpclient from application, we are getting a 404 error in application logs.
Thanks,Monish
Thanks for that.
Could you try basic authorization instead of email + api token?
You can check this link for the format, you'll also need to encode your credentials and pass it as a basic auth.
It looks like you're new here. Sign in or register to get started.