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

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

SAGAR PAWADI May 10, 2022
#Given below parameters correctly in the pipeline, but still getting errors

script
:
- pipe: atlassian/trigger-pipeline:5.0.0
variables:
BITBUCKET_USERNAME: 'sagarpawadi-admin'
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
REPOSITORY: 'CICDDL.License'
ACCOUNT: 'LYZERCICD'
##Errors
0600a5d33135: Pull complete
2566fc56a1b4: Pull complete
839a8a969a56: Pull complete
Digest: sha256:029e80242186e4668d334622085a0519ebbced0df99a7d540d70870ff9daa15c
Status: Downloaded newer image for bitbucketpipelines/trigger-pipeline:5.0.0
✖ API request failed with status 401. Check your account and app password and try again. 
Note: BITBUCKET_APP_PASSWORD has been created in App password section with all privilege's.

2 answers

0 votes
Ryan Geddings July 11, 2022

Was there a resolution to this? I've tried passing my user id and generated app password as variables and plaintext with the same results.

Ryan Geddings July 11, 2022

I found the answer here, Solved: ✖ API request failed with status 401. Check your u... (atlassian.com) I was using my users email not the explicit username associated with the user. 

0 votes
o_kyrdan May 10, 2022

Hi @SAGAR PAWADI 

Thank you for your question!

1. Check username.

2. Make sure that current user have rights to access this repository.

3. The next to check, permissions for BITBUCKET_APP_PASSWORD.

 

More detail you could find in the Readme of the trigger-pipeline pipe.

 

Best regards,
Oleksandr Kyrdan

SAGAR PAWADI May 10, 2022

Hi @o_kyrdan , 

All the above 3 points are taken care, But still same issue persists.

o_kyrdan May 10, 2022

Also, you could re-set up Repository Variables, to make sure you copy-paste values without trail spaces or other symbols in the value.

It's a common issues during setup.

SAGAR PAWADI May 10, 2022

Hi @o_kyrdan Still it's the same ? Can you please come for screen share to troubleshoot it ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events