question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS 2019 fails to authenticate git credentials against Bitbucket cloud repo

See original GitHub issue

I can’t get this to work. Tried removing credentials from Windows Credential Manager. Reinstalling GCM. What am I doing wrong??

I have a private repo in a Bitbucket cloud account. Visual Studio 2019 16.3.10 git-credential-manager (v1.18.4) My library csproj:

....
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>  
<ItemGroup>
 <PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0" PrivateAssets="All" />
....

In VS this is the error log I’m getting when trying to step into the source code.

Looking for source using Source Link (https://api.bitbucket.org/2.0/repositories/etixxxxxxxxam/exxxxxxxxest/src/1d8f896c416670ef54e4d27250d744883aebcab0/Providers/AuthorizationServerProvider.cs)… Source Link errors: git-credential-manager.exe: Could not obtain credentials. Process failed with exit code -1. ERROR: The request failed with code 403 : “Forbidden”. The file was not found with Source Link.

GIT log

18:14:36.832261 ...\Common.cs:744       trace: [Main] git-credential-manager (v1.18.4) 'get'
18:14:36.922020 ...\Git\Where.cs:348    trace: [FindGitInstallations] found 1 Git installation(s).
18:14:36.936986 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 22 entries.
18:14:36.941966 ...\Common.cs:479       trace: [LoadOperationArguments] interactive = 'false'.
18:14:36.942964 ...\Common.cs:505       trace: [LoadOperationArguments] writeLog = 'True'.
18:14:36.942964 ...\Common.cs:543       trace: [LoadOperationArguments] useHttpPath = ''.
18:14:36.944959 ...\Common.cs:318       trace: [EnableTraceLogging] trace logging enabled.
18:14:36.953934 ...\Common.cs:334       trace: [EnableTraceLogging] git global config found at 'C:\Users\Gonzalo\.gitconfig'.
18:14:36.955938 ...\Common.cs:378       trace: [EnableTraceLoggingFile] trace log destination is 'C:\Users\Gonzalo'.
18:14:37.017274 ...\Common.cs:85        trace: [CreateAuthentication] detecting authority type for 'https://api.bitbucket.org/'.
18:14:37.035229 ...uthentication.cs:313 trace: [GetAuthentication] authentication for Bitbucket created
18:14:37.035229 ...\Common.cs:192       trace: [CreateAuthentication] authority for 'https://api.bitbucket.org/'  is Bitbucket.
18:14:37.035229 ...\Common.cs:765       trace: [QueryCredentials] querying 'Bitbucket' for credentials.
18:14:37.046198 ...\Common.cs:709       trace: [LogEvent] Failed to retrieve Bitbucket credentials for 'https://api.bitbucket.org/'.
18:14:37.048191 ...\Program.cs:414      trace: [Get] Logon failed, use ctrl+c to cancel basic credential prompt.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
chuckriescommented, Apr 20, 2020

@tmat can you close this issue? apparently I don’t have permissions.

0reactions
gonzalolunacommented, Apr 20, 2020

I found the issue, it seems that even though the nuget package was properly built with the PDB and source link information, the PDF file is not being copied under the bin\ folder in the consumer application, just the DLL. Seems to be a bug https://github.com/dotnet/sdk/issues/1458

Placing the pdb file manually works.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not log in to Bitbucket in Visual Studio
My user and password works correctly when login from website. The ouput says: git: 'credential-manager-core' is not a git command. See 'git --help'....
Read more >
Invalid credentials" error when pushing to Bitbucket? ...
Go to Personal settings from the menu at the top. Click on App passwords and set up the permissions as required as shown...
Read more >
Create a Bitbucket App Password example
Learn how to quickly create a Bitbucket App Password so your Git push and clone operations don't fail with fatal 'invalid credentials for ......
Read more >
Use Git Credential Manager to authenticate to Azure Repos
Git Credential Manager simplifies authentication with your Azure Repos Git repositories. Credential managers let you use the same credentials ...
Read more >
Create a Bitbucket App Password & Fix Fatal Invalid ...
Have you hit Bitbucket's fatal error about invalid credentials ? You can fix Bitbucket's Authentication Failed error if you generate a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found