Could not find a default branch for project with key ''. Make sure project exists

We are facing following issue:

Could not find a default branch for project with key ‘’. Make sure project exists.

Hey there.

Is this on a new project? An existing project? Happening all of the time? Some of the time?

More details would be appreciated.

Hi its an existing project. It was working fine few days before but suddenly starts throwing errors.

Sometimes, this error can occur if SONAR_TOKEN is expired or invalid. What CI are you using to run your analysis (GitHub Actions, Bitbucket Pipelines, Jenkins, etc…)?

Thank you for your reply! We are using Bitbucket Pipelines

Did you find solution? we are facing the same issue on bitbucket pipelines