SourceTree - Hosted Repositories - Content-Type Error

Hi everyone,

Whenever I add a repository to my hosted list I get the following error when the dialog is saved and the list of hosted repositories is displayed.


'Content-Type' is an unexpected token. The expected token is "" or "'. Line2, Position 18.


Tried numerous repositories that should work, uninstalling/installing etc. Without any repositories the error disappeares.

Thanks in advance for any help,



I'm on a Windows 8 machine.

3 answers

This widget could not be displayed.

Is this for Windows or Mac?

This widget could not be displayed.

I'm having the same problem from a Windows 8 machine, yet no probelm from a Windows 7 machine. Both are behind a proxy server that requires authentication if that helps with suggestions?

This widget could not be displayed.

I'm also having a similar problem on Windows Server 2008 R2. In my case, this error occurs when setting up my Bitbucket account upon initial install of SourceTree.

The computer is behind a proxy server (no authentication required).

Screenshot attached. Please let me know if you'd like any further info.

Sorry, my bad. I'd accidentally configured Internet Options control panel with our proxy server that does require authentication. I've corrected that and it's now working.

It would appear that SourceTree doesn't prompt for proxy credentials upon an HTTP 407 response. Instead, it displays an error message, as above.

The authentication-required proxy server would only work when I explicitly set custom proxy server and credentials in SourceTree > Tools > Options > Network.

I hope this helps!

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...

873 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