Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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

✖ API request failed with status 401. Check your username and app password and try again.

Hi, I am using the Atlassian pipe:

to deploy a python library to our repository downloads.

Following the instruction, I created an App Password and create the corresponding Account Variables so they are accessible for all the repos in our Team account. 

When I run the deployment step:

- step:

     name: Deploy to Downloads script:

        - pipe: atlassian/bitbucket-upload-file:0.1.4




                 FILENAME: 'dist/rabbitmq_wrapper-0.1.0.tar.gz'

I get: ✖ API request failed with status 401. Check your username and app password and try again.


In your instructions, it says "If you want to upload a file to a repository owned by a team account, make sure you have the correct access to the repository." Does that mean my personal account? (I am admin), or should I give access to the App Password, and if so, how?

1 answer

1 accepted

0 votes
Answer accepted

Hi @mmromero ,

make sure that you created BITBUCKET_APP_PASSWORD correctly with right permissions:
Repositories write and Repositories read.

Also, check 
that provided BITBUCKET_USERNAME value is your Bitbucket user, not the email.

If you want to upload to the team's repository,  your config might be the next:

- pipe: atlassian/bitbucket-upload-file:0.1.4
FILENAME: 'dist/rabbitmq_wrapper-0.1.0.tar.gz'
ACCOUNT: 'teamaccountname'
REPOSITORY: 'repositoryname'


it turns out that my account has name and public name. Which one should be used? I've already tried both; no luck

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events