title: Error configuring Bitbucket/github as external repo in Google Cloud Source Repositories: "Failed to connect repositories"
body: <p>I've been trying to configure a repository I created on Bitbucket (BB) as an external repo on GCP with no success.</p>
  
  <p>I get a new repo on BB, gave Admin permissions to the same user I used for GCP and log on with it on both sites using the same browser.</p>
  
  <p>On GCP, "Connect external repository", I follow the steps in [1], I can see my BB account and the repos on GCP. I pick the right one, and as a final step, I press "Connect selected repository" and get "Connecting repository ..." for a while, but eventually "Failed to connect repositories". No further info</p>
  
  <p>I read [2] but still no luck.</p>
  
  <p>I suspect I might be missing something that must be done on BB side.</p>
  
  <p>Any help? Thanks a lot</p>
  
  <p>[1] <a href="https://cloud.google.com/source-repositories/docs/mirroring-a-bitbucket-repository" rel="noreferrer">https://cloud.google.com/source-repositories/docs/mirroring-a-bitbucket-repository</a></p>
  
  <p>[2] <a href="https://stackoverflow.com/questions/53515504/problems-connecting-to-bitbucket-with-cloud-build-and-source-repositories">Problems connecting to BitBucket with Cloud Build and Source Repositories</a></p>