The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events