Skip to content

Bitbucket server: Repo not found error when the hostname is different from the perspective of the client vs Sourcegraph

Created by: chrismwendt

  • Spin up a new Sourcegraph instance on localhost:7080
  • Spin up a new Bitbucket Server instance and add a repository
  • Point the browser extension to http://localhost:7080
  • Visit a file on Bitbucket Server and hover over some code to trigger a GraphQL request
  • Open the browser console and see this error:

image

The Sourcegraph icon and TypeScript toggle buttons look ok:

image

image

My sourcegraphURL in chrome sync storage is "http://localhost:7080":

image

I don't think this is a basic-code-intel bug because basic-code-intel makes the request through the Sourcegraph API.