ERROR: Could not find the pullrequest with key '1234'

Since about 10:00 UTC yesterday (2024-01-10) my pull request builds are failing the SonarCloud analysis. SonarCloud says that it can’t find the pull requests in Azure DevOps any more. But the pull requests exist.

This happens for all pull requests - also new ones.
This happens for multiple (all tested) SonarCloud projects.
Just a few minutes before around 10:00 UTC yesterday the builds/analysis still worked fine.
The link to Azure DevOps (top left on the SonarCloud project page) is correct.
Normal (non pull request) builds still work fine and show analysis results in SonarCloud.

Error log:

##[error]ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key '1234'
##[error]ERROR: Caused by: Error 404 on : {"errors":[{"msg":"Unable to find the pullrequest with key \u00271234\u0027"}]}
  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Scanner command used when applicable (private details masked): SonarCloudAnalyze@1 task
  • Languages of the repository: C# and Angular repositories affected
  • Only if the SonarCloud project is public, the URL: Private project
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting): See above
  • Steps to reproduce: Run a SonarCloud analysis for a pull request
  • Potential workaround: None found yet

Ok, it seems to work again. Looks like the problem was an expired Azure DevOps Personal Access Token in the organization settings of SonarCloud.

Please improve the error message in this case!


Hi @Manuel.P , thanks for your message! The current message you receive is a protection to avoid enumeration of information. We are aware that this is misleading and we plan to improve that. Meanwhile, please reach out to us again if you face any problems. Have a nice day!

1 Like

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