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

Is this for Windows or Mac?

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?

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 Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,101 views 4 2
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