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
4,297,390
Community Members
 
Community Events
165
Community Groups

How to solve Authentication and Pull Request Problem

I am using SourceTree Version 3.4.7,created an Apppassword from the Bitbucket account linked.When Tried to Authenticate using Tools->Option->Authentication

 1.When oAuth is selected as Authentication type,the application is not responding and after a while showing Authentication Failed Message "Unable to get secret.Error reading JObject from JsonReader.Path'',line 0,position 0"

2. When Basic is selected as Authentication type,Given the account name and the apppasword generated from BitBucket,Authentication is Success.But when pull action is performed in any repository the popup is asking for password for 3-4 times and displaying error message

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
fatal: TaskCanceledException encountered.
A task was canceled.

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/eltizam/dbscripts.git/'

 

fatal: TaskCanceledException encountered.
A task was canceled.

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/eltizam/dbscripts.git/'

 

fatal: TaskCanceledException encountered.
A task was canceled.

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/eltizam/dbscripts.git/'

   

 

1 answer

0 votes
Ben Atlassian Team Jun 08, 2022

G'day Rishvanthi!

The reason you are receiving the App Password error message is because it is prompting you for basic auth credentials due to the way that your git remote URL is configured.

We have a blog post however which explains the steps to troubleshoot this issue specifically in SourceTree, please follow these accordingly and this should resolve the issue:

Please let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,655 views 127 27
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