Could not find a default branch error

we are using bitbucket pipelines to analyze our multiple sonar cloud projects suddenly we start getting below error on all the projects, but unable to find the solution:

ERROR: Error during SonarScanner execution

121

ERROR: Could not find a default branch for project with key 'test-project'. Make sure project exists.

122

ERROR:

123

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

124

✖ SonarCloud analysis failed. (exit code = 2)

Hi,

You’re getting this error on all your projects, including ones that exist on the server?

Can you identify when you started seeing this error? Also, for the projects that do exist in SonarCloud already, can you verify that they have a default/main branch in SonarCloud?

 
Thx,
Ann