Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

the remote server returned an error: (405) Method not allowed

john mediavilla
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2023

im trying to do a checkout  using sourcetree from bitbucket but im getting this error message  the remote server returned an error: (405) Method not allowed

1 answer

0 votes
Martin Runge
Community Champion
July 19, 2026

Hi @john mediavilla

Welcome to the Atlassian community!

Let's start by checking the remote URL on your repository. A 405 error typically happens when Sourcetree is trying to access a web page URL instead of the proper Git endpoint. You can do this by going to Repository > Repository Settings > Remotes and making sure the URL ends with .git and isn't just a browser link copied from the address bar.

A few other things you could try:

  • Switch from HTTPS to SSH for the remote.
  • Check whether a proxy is set.
  • Try the System Git instead of the embedded one.
  • Remove the saved credential for bitbucket.org in Windows Credential Manager (or Keychain on Mac) so Sourcetree re-prompts.

If it still fails, I would run the same clone or checkout from a terminal with GIT_CURL_VERBOSE=1 to see the exact URL and method being sent, which quickly shows if it is the remote URL or the credential.

Cheer, Martin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events