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

Problem

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

Cause

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. 

Resolution

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.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport