I have faced issues with permissions on BitBucket Server and using them from Visual Studio. We are able to login to the BitBucket but in Visual Studio and we are not able to get to and clone public repositories. Git failed with a fatal error. Authentication failed for (path to repository).
Please look into this on top priority.
Hi @Sibsankar and welcome to the community.
I would like to ask a few questions so we can better help you:
1. You mention "BitBucket Server", but your post has the tag 'bitbucket-cloud'.
Can you please confirm whether these repos are hosted in Bitbucket Cloud (https://bitbucket.org/) or Bitbucket Server (self-hosted instance)?
2. Are you using HTTPS or SSH to clone these repos?
3. Are you able to clone these repos from a command-line application?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sibsankar,
Thank you for the info.
When you enter the HTTPS URL of the repo in Visual Studio, does it include your Bitbucket username, e.g. like this:
https://Bitbucket-Username@bitbucket.org/Workspace/Repo.git
or does it not include the username, e.g. like this:
https://bitbucket.org/Workspace/Repo.git
Git usually attempts to clone without authentication first, which should succeed if the repo is public, but I'm not sure if Visual Studio behaves in a different way. Are you using the Git plugin in Visual Studio or a different plugin?
Another thing: we deprecated account passwords for Git over HTTPS. It's possible that Visual Studio or your credential manager has the account's password stored and is trying to use that.
I would suggest clearing all saved credentials and generating an app password (which should be used instead of a password when cloning/pulling/pushing via HTTPS), see here for more info:
Are you able to clone these repos from a command-line application?
--No.Using Visual Studio
Finally, I would suggest trying to clone using the same HTTPS URL from a command-line application and let me know what the output is.
This is to narrow down whether the issue is specific to Visual Studio or not.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.