Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

7,103 views 5 13
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you