Unable to find the pullrequest with key

Hi I have a problem with sonar cloud.
Here are a few details that were required:

  • ALM used Azure DevOps
  • CI system used Azure DevOps
  • Scanner command used when applicable (private details masked)
  • Languages of the repository: c#

My issue is that I’m getting this exception.
I checked SonarCloud and this PR exists there and also in DevOps Azure.
PAT is also valid.
Can you give a hint, what is going wrong there?

##[error]ERROR: Could not find the pullrequest with key '8405'

ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=XYZ&pullrequestKey=8405 : {"errors":[{"msg":"Unable to find the pullrequest with key \u00278405\u0027"}]}

##[error]14:34:59.616 Post-processing failed. Exit code: 1

XYZ - This is my project key (private)

Best regards
Pawel

Hey @Pawel_P

Have you made sure the organization-level token (global Administration > Organization Settings > Organization binding is still valid?

In the backend, I can see a 401 when Azure DevOps is being queried by SonarQube Cloud. Happy to send you the specific URL privately so you can try querying it using your token.

Hi Colin, I checked this token in Azure DevOps and there was valid but I did not check it in SQ.
Thank you and best regards
Pawel

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.