"The server committed a protocol violation" logging into bitbucket from SourceTree

Trying to Browse Hosted Projects from the Clone/Add/Create Repositor. I click the little globe icon and get:

 

Login Error

Login failed for your Bitbucket account.

The remote service said: 'The server committed a protocol violation. Section=ResponseStatusLine'

I got to this point because when trying to use the Clone string from the Bitbucket website I was getting an error that my repository was not a valid source path, but details showed "Recv failure" Connection was reset"

That led me to check another existing repository in Source Tree and I can't pull from that any more either.

So I feel like the root of my error is that I can't log in from SourceTree. I can log in through a browser with no trouble

 

1 answer

This widget could not be displayed.
Mikael Sandberg Community Champion Apr 20, 2016

What version of Git are you using on your client? I have seen the issue with the Clone URL string you get from Bitbucket have extra characters in SourceTree if you are using an old version of Git.

My embedded version is 1.8.3 but if I try to update it I get the same protocol violation error. My system version is 2.8.1.

Maybe I need to re-installed SourceTree or test on a 2nd machine.

I finally got everything working from the command line using SSH keys instead of a password but still can't get SourceTree to play nice.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

879 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you