I'm not able to get pull request key Id in sonarcloud

Everything was working before Friday 06/21/2024

  • When I run a build in azure devops it fails with this error:

##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key ‘11385’
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=myproject&pullrequestKey=11385 : {“errors”:[{“msg”:“Unable to find the pullrequest with key \u002711385\u0027”}]}
ERROR:

I created a new PAT from my repo and added in sonarcloud at:
Administration>General settings> pull request.
This did not resolve the issue

  • I generated a new token for my service connection from sonarcloud and it was validated.
    We also have another repo with sonarcloud configured and it is working just fine.
    This was configured by a team member who is not still part of the team just to find out if anything could be broken because of this.

Hey there.

Is your organization-level PAT still valid? You can check your organization-level Administration > Organization settings > Azure DevOps connectivity management.

Hi,
Yes it is valid
I even created a new one but it didn’t work.

Thanks @marc1

Another cause of this issue could be a bad project binding. Is your project bound, and if you click on the project binding are you taken to the Azure DevOps repo where PR 11385 exists?