Ran into an issue with sourcetree/git where I couldn't pull/checkout any branches. I assumed it was some type of authorization error with my account, so I removed my credentials to try and readd them. But every time I try to authorize with OAuth or Basic, Sourcetree will hang for a long time and then I get these error messages. I'm pretty sure I have my password right, and I am signed in to bitbucket on my web browser Google Chrome.
"Unable to get secret"
"Error reading JObject from JsonReader. Path ", line 0, position 0."

Community moderators have prevented the ability to post new answers.
Hi Tommy,
This "Unable to get secret" / JsonReader error is a known Sourcetree issue with the OAuth token exchange for Bitbucket — Sourcetree's embedded auth flow sometimes fails to parse the JSON response it gets back, often triggered by antivirus/firewall SSL inspection, a corporate proxy, or just a corrupted local token cache.
A few things to try, in order:
App passwords tend to be more stable long-term anyway since Bitbucket is moving away from OAuth-based app integrations in several flows.
kind regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.