INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key '501'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=Project-NAME&pullrequestKey=501 : {"errors":[{"msg":"Unable to find the pullrequest with key \u0027501\u0027"}]}
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR: Could not find the pullrequest with key '501'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=Project-Name&pullrequestKey=501 : {"errors":[{"msg":"Unable to find the pullrequest with key \u0027501\u0027"}]}
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
##[error]The process '/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/bin/sonar-scanner' failed with exit code 2
Do not share screenshots of logs â share the text itself (bonus points for being well-formatted)!
Verified bounce is pointing to right organization, keys are active, even PAT is good, its happening on PRV, verified from sonarcloud its pointing to right project, The scan on PRs was working fine but its showing error from past Friday, i donât see any details of PR on Sonarcloud and getting this error whenever we create a PR and merge to stage then the PRV triggers as per pipeline rules, PRV has sonarcloud scan which is failing with above error, but i donât see anything about PR on sonarcloud only error on Azure pipeline, please suggest
Many systems will return a 404 error (i.e. what youâve asked for doesnât exist) rather than a 403 error, thus admitting that the resource exists but you just donât have access to it.
You should double-check the PAT (personal access token) youâve configured SonarCloud with.
PAT token was valid but still i created a new key and updated with full access and again to make sure its working by still not working, getting same error, i verified other tokens, bounce etc all looks good,
the issue appears when i do change and create a PR then as per policy pipeline will run the PRV which has sonar cloud scan, here its failing and giving error::
Please suggest:
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key â560â
ERROR: Could not find the pullrequest with key â560â
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
##[error]The process â/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.43.2/sonar-scanner/bin/sonar-scannerâ failed with exit code 2