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
Community Members
Community Events
Community Groups

Github Enterprise Login - Unexpected char encountered

Using a Github enterprise account on source-tree with the correct host url gives the following error and could not use source-tree properly.


Host url:

Preferred Protocol: HTTPS or SSH

Authentication: Basic

Username: just the shortname

Clicked "Refresh Password" 

It gave the following...


Unable to parse the response from the host service.
Please check the host url details for this account. It's likely that Sourcetree tried to contact an unrecognized service.
Unexpected character encountered while parsing value: <. Path ", line 0, postion 0.


Please advise how can this be resolved. Sourcetree is better in my opinion.



2 answers

Hi Ana,

I also have similar issue, can you help on that?

Screen Shot 2019-07-04 at 10.51.56.png

Regarding to github desktop, I think it should forward to browser to let the user to authenticate by some SSO or similar.

using SSH for enterprise accounts still fails with this error. 

Found the solution. Create an access token from your enterprise account, then use that as your password. You still need to have your SSH keys setup, however. 

0 votes
Ana Retamal Atlassian Team May 15, 2019

Hi Joel, welcome to the Community!

Can you send us a screenshot of your attempt at adding the Gitbug Enterprise account? I tried to reproduce your issue, but I couldn't find the option "Refresh password" (I'm on Sourcetree for Mac). 

Also, for troubleshooting purposes, can you also let us know which Sourcetree version and OS are you using?

Best regards,


Suggest an answer

Log in or Sign up to answer
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...

78,806 views 134 29
Read article

Atlassian Community Events