Issue #6018 open

Http 412 error when connecting to Bitbucket (BB-7267)

created an issue

When pushing to Bitbucket, some users may receive the following message:

error: The requested URL returned error: 412 while accessing
fatal: HTTP request failed

This error message is erroneous and actually should inform the user that they don't have a password set on their account.

Comments (20)

  1. Marcus Bertrand staff

    This situation can arise if the user has chosen to log in with the new log in from Google/GitHub feature and opted to skip setting a password for Bitbucket activities.

    If you plan on using https to work with Bitbucket, you'll need to set a Bitbucket specific password. This can be done from{user name}/.

    Alternatively, you can use SSH. We have a guide to configuring it here

  2. Luciano Panepucci

    I am a new user:

    • I created my bitbucket account using my github OAuth.
    • I created a new repo.
    • I followed the steps to import existing repo.
    • When I tried the push I received this error.

    I then went to bitbucket site:

    • Click the user menu
    • Manage account
    • Change password

    After setting/changing the password the same push command prompted me for my password.

  3. Jeffry Houser

    my problem is that the 'username;' in the URL is not my account, but the account of a client. It all worked great last week. Today I'm getting this error.

    Changing my password appeared to have no affect.

    If I follow these steps it works [once]:

    • Edit --> Preferences
    • Go to hosting providers,
    • delete the BitBucket account
    • Click Okay
    • Click Push [or pull]
    • Enter Username and Password [Leave store password unchecked]
    • It works
    • Click Push (or pull) again
    • See 412 Error

    It seems odd to me that it works the first time but no subsequent times.

    I'm on version 5.0.6 (build #2105); downloading now.

  4. Log in to comment