VS 2019 fails to authenticate git credentials against Bitbucket cloud repo
See original GitHub issueI 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:
- Created 3 years ago
- Comments:17 (8 by maintainers)
Top GitHub Comments
@tmat can you close this issue? apparently I don’t have permissions.
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