403 while accessing https://{username}@bitbucket.org/{username}/{repo slug}.git/info/refs

Still need help?

The Atlassian Community is here for you.

Ask the community


When attempting to push or perform certain other write tasks on a Git repository over https, you may see the error:

The requested URL returned error: 403 while accessing https://{username}@bitbucket.org/{username}/{repo slug}.git/info/refs
fatal: HTTP request failed


The owner of the repository is over their plan limit and should upgrade

In the past, Bitbucket Cloud would send a helpful message back to the client in the form of a 402 (payment required) along with a message explaining that you were over your plan limit. Unfortunately, recent changes in the Git client prevent this message from ever making it back to the end user. 


To check this, speak to the repository administrator and ask them to upgrade their plan from the Plans and billing page by choosing the Change plan option. You can also remove users. We have documented this bug at https://bitbucket.org/site/master/issue/4020/http-error-403-on-command-line-when-over.

If you find this is not the issue, please report the issue to support via this link. Creating an account on support is free and a member of the Bitbucket Cloud support team will assist you shortly.



Last modified on Nov 2, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.