Sonarqube Scan is giving the error 403 Forbidden

Sonarqube Version

  1. Enterprise Edition: Version 8.5.1 (build 38104)

Error observed:
When I click the project, it doesn’t display anything in the Overview but gives an error message
“The main branch of this project is empty.”

In the WebInspector I see the error:

Failed to load resource: the server responded with a status of 403 (Forbidden) for Sonarserver/api/measures/component

Hello Sohini,

Who created the project? Are you an administrator of either the project or all of SonarQube? Are you logged in?

Yes. Logged in with administrator and also have given admin rights to all sonar-users for the project

Is there a reverse proxy in front of SonarQube and/or a web proxy on your network?