Bitbucket widget blank and 403 when requesting vendor.js

Hello, for some time (maybe the last few months) the SonarQube widgets in our Bitbucket workspace have not been loading, rendering just a white box where it would normally be. This impacts both the widget on the repo home and also any pull requests.

In developer tools, the only request with an error status is to https://sonarcloud.io/vendor-abcdefgh.js. (Not literally abcdefg, just a random-looking string of chars and I’m not sure if it’s sensitive). The response status is 403 and it was referred to from https://sonarcloud.io/integration/bitbucketcloud/repo_config (plus parameters for repo uuid, owner, etc.)

What I found odd is that other requests to parts of the widget, such as https://sonarcloud.io/DuplicationsRating-ijklmnop.js or https://sonarcloud.io/QualityGateIndicator-qrstuvqx.js, returned 200 codes.

Code analysis itself appears to work, only the widgets are failing to render.

We’ve had SonarQube installed as an app in our Bitbucket workspace for several years. We are using the legacy paid plan.

  • ALM used: Bitbucket Cloud
  • CI system used: Bitbucket Cloud
  • Languages of the repository: Any
  • Error observed: GET ``https://sonarcloud.io/vendor-abcdefgh.js`` net::ERR_ABORTED 403 (Forbidden)
  • Steps to reproduce: Load any page where the widget appears, including repo home, repo settings, or pull requests.
  • Potential workaround: Have to look for the project on SonarCloud manually

Hi,

Welcome to the community and thanks for this report!

Do you have any ad blockers active in your browser? The 403 made my first thought be about an expired token, but checking the docs I’m not seeing any mention of configuring a token, just a warning (expand the “Enabling the Repository Overview Widget” section) about ad blockers.

 
Ann

Hello Ann, thanks for helping me investigate this.

I can confirm I’m not using any ad blockers in my browser (Google Chrome), but I can try disabling any other extensions just in case. Unfortunately we’re facing Bitbucket issues at the moment but I will try that as soon as possible. I’m also asking my teammates to check if it’s an issue for them as well, or if it’s just me.

I previously tried clearing my site data based on some similar threads I saw here but that didn’t resolve it for me.

1 Like

After asking my teammate it turns out it was just a problem for me. I was able to fix it by clearing site data again and then using “Empty cache and hard reload.” Now it’s loading correctly on all my repos.

Thanks for your suggestions and enjoy your day!

1 Like