Receiving 404 error on SonarScanner during Pull Request

  • ALM used: Azure DevOps

  • CI system used: Azure DevOps,

  • Scanner: SonarScanner

  • Languages of the repository: Python, Docker, TypeScript

  • Error observed:

INFO: Detected project binding: BOUND
INFO: Check ALM binding of project 'thisistheproject' (done) | time=197ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=183ms
INFO: Load branch configuration
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 25.243s
INFO: Final Memory: 20M/67M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key '1249'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=thisistheproject&pullrequestKey=1249 : {"errors":[{"msg":"Unable to find the pullrequest with key \u00271249\u0027"}]}
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key '1249'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=thisistheproject&pullrequestKey=1249 : {"errors":[{"msg":"Unable to find the pullrequest with key \u00271249\u0027"}]}
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
  • Steps to reproduce
    Pull request and trigger pipeline to run sonar cloud analyze.

  • Notes:
    Private key is correct as I can run the same pipeline manually successfully, only with PRs SonarScanner fails.

The same question has been asked many times over the last couple years. However, no solutions have been stated.

Hey there.

Did the problem start today? There have been some GitHub incidents today, and I wonder if they’re related.

Hi Colin, yes. As far as I know the issue started today. It has been working consistently over the last few months.

Also, the PR id’s are also not listed in the https://sonarcloud.io/project/pull_requests_list?id=thisistheproject list

Hey there.

Now that all GitHub incidents seem to be resolved, can you tell us if you’re still facing the issue?

Hi Colin,

Thanks for checking in. Issues have been resolved.

Cheers,

Piet

1 Like

Hi Piet
I am facing the same issue on Azure Devops, Can you provide details on resolution ?

The issue was resolved without modifying anything on our side. Hope you’re able to solve it quickly.