We are facing following issue:
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
Hi!, can you post the solution, we are facing the same issue, our project was getting analyzed few days ago and then it stopped and giving the same error as the author, please help
Hi, I’m encountering the same issue. The project was analyzed a few days ago, but then it stopped and showed the same error. Could you please share the solution for this?
As stated by Colin a year ago, one possible solution is to create a new Access token (User → My account → Security) and update the CI-system to use this new token. This solved my problem today ![]()
Hey Sonar Team!
We still this issue still happening with the Scoped Org tokens. The error message can be misleading to understand what is the issue, especially with the scoped tokens having more opportunity to not be valid for a project.
Do you plan to improve this error message, stating the issue is with the token? That would be appreciated.
Thanks and cheers,
Balazs
You’ve resurrected a topic that’s 1 year old. Per the FAQ, please don’t do that. Please create a new thread with all your details.
Thx,
Ann