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

Failed connect to


I am attempting to use SourceTree to clone a valid shared repository in Bitbucket. After entering the source/path for the repo into the Clone Reporitory screen, i receive an error message "This is not a valid source path / URL". Selecting the details button shows the error message "fatal: unable to access '': Failed connect to; No error"

Error Details

We are sitting behind a proxy, but the proxy setting have been set up correctly inside SouceTree because we can see the repository name appear when we select the globe icon to the right of the "source path / url" field.

Screengrab - Hosted Repositories

Can someone please let me know why this setting is not going through the proxy and help me with this setup??



4 answers

Tools->options->Network tab, verify your settingsNetworksettings.png


Worked a treat, thank you very much for your help :-)

Signed up just to say thank you for this suggestion. It was the "Add proxy server configuration to Git / Mercurial" checkbox that I hadn't done. After that, things started working.

Like # people like this

Worked like a charm ! Thank you sir, you saved my day.

It worked perfectly. Thank you.

awesome working ! thanks brother

OMG! such a simple solution and hours of desperation! thank you

That worked with a different port. Thank you very much. You saved me. :)

Really the solution suggested worked for me after several attempts for solving the issue. Thankyou:)

Sorry...Where to find this Tools->options->Network tab, verify your settingsNetworksettings.png

Like anand_changani likes this

Same question... where is Tools->options->Network tab, verify your settingsNetworksettings.png?

Like # people like this

Thanks a worked finally

Done.  it works. Thanks..!!

Hi All,

Same issue for me.

Any one help me to solve the issue I don't understand where I need to go to select Tools->options->Network tab?

I am using Windows OS. 


Best regards,


Like # people like this

Brilliant! This exactly fix my issue. Thanks!

For Ubuntu 14.04

I had the same issue in ubuntu.

But after removing from etc/host file.

Its started working for me.

This fixed it!

I had added this line to my hosts file months ago to fix a similar SourceTree issue and totally forgot 😂

Like sharmaank likes this

This did it for me, after wasting days on the Net. Thank you :)

worked for me thanks

I'm having the same issue but cloning directly from terminal on MAC. Where can I find this Tools > Options > Network tab?

Thanks a lot

I had the same issue

Same issue in my Ubuntu 14.04

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

62,774 views 128 27
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