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.

No luck getting Source Link to work with Cloud hosted Bitbucket

See original GitHub issue

Our code is stored on Bitbucket’s hosted platform. We’re attempting to debug private NuGet packages that we are the author of.

For the package that I’m testing, I’ve set the following in its .csproj:

  <PropertyGroup>
    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
    <EmbedUntrackedSources>true</EmbedUntrackedSources>
    <IncludeSymbols>True</IncludeSymbols>
    <PublishRepositoryUrl>true</PublishRepositoryUrl>
    <SymbolPackageFormat>snupkg</SymbolPackageFormat>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.1.1">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
  </ItemGroup>

On the consuming end, I’ve ensured that symbols are loading as well unchecked Enable Just My Code and checked all options for Enable Source Link support and Enable source server support.

I’m attempting to access the code for a call in the callstack that lives in the nuget package. When I do so, it’s getting a 404 when it attempts to access the file using http://api.bitbucket.org. When I try to access the file outside of the API via https://bitbucket.org, the path that it’s using works.

It would appear to be some sort of authentication issue, but I’m not certain how to troubleshoot that, as I don’t know which credentials are being passed into the API, nor am I ever prompted for credentials. We are using Bitbucket with 2FA and SSH, as is required to utilize their CI pipelines anymore.

Can you provide guidance on where to go from here?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Oct 13, 2022

@chuckries Authentication issue.

0reactions
mdemlercommented, Apr 28, 2023

I didn’t check with them, but I believe it’s all internal to them, so they’re avoiding the HTTPS overhead in their pipeline environment. All other public access is over HTTPS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error configuring Bitbucket as external repo in Go...
I've been trying to configure a repository I created on Bitbucket (BB) as an external repo on GCP with no success. I get...
Read more >
URL for Bitbucket cloud · Issue #185 · dotnet/sourcelink
Trying to get SourceLink working with our Bitbucket cloud hosted ... Source Link errors: uriString The file was not found with Source Link....
Read more >
Error configuring Bitbucket/github as external repo in ...
I've been trying to configure a repository I created on Bitbucket (BB) as an external repo on GCP with no success. I get...
Read more >
Mirroring a Bitbucket repository
Only Bitbucket Cloud and GitHub Cloud repositories can be mirrorred to Cloud Source Repositories; self-hosted Bitbucket and GitHub mirroring are not supported.
Read more >
Bitbucket Overview
Cloud Server Data center Git repository hosting Cloud Server Data center Branch permissions Cloud Server Data center Jira Software integration Cloud Server Data center
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