Sonarcloud bitbucket pipeline failing

My SonarCloud pipeline is keep failing below is pipeline output. I have integration with bitbucket on every pull request.

I am seeing this error for all pull request, key number is changing.
ERROR: Something went wrong while trying to get the pullrequest with key ‘3389’

INFO: Load project branches

INFO: Load project branches (done) | time=225ms

INFO: Check ALM binding of project 'silvergoldbull_magento'

INFO: Detected project binding: BOUND

INFO: Check ALM binding of project 'silvergoldbull_magento' (done) | time=392ms

INFO: Load project pull requests

INFO: Load project pull requests (done) | time=460ms

INFO: Load branch configuration

INFO: Detected analysis for pull request '3389' targeting 'master'

INFO: Auto-configuring pull request 3389

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

INFO: Total time: 5.714s

INFO: Final Memory: 8M/34M

INFO: ------------------------------------------------------------------------

ERROR: Error during SonarScanner execution

ERROR: Something went wrong while trying to get the pullrequest with key '3389'

ERROR: Caused by: Error 500 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=silvergoldbull_magento&pullrequestKey=3389 : {"errors":[{"msg":"An unexpected error occurred. Please try again later."}]}

ERROR: 

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

✖ SonarCloud analysis failed. (exit code = 2)

Hi @waleedmazhar,

It seems your SonarCloud organization is not bound to your Bitbucket workspace. This might happen if you remove the SonarCloud application from Bitbucket. Or you might have moved your Bitbucket repository to another workspace (I am not sure if it is possible). But somehow SC doesn’t have permission to access the Bitbucket workspace of the Bitbucket repository you want to analyze.

You can try to (re)import your Bitbucket workspace containing the project(s) you want to analyze, to SonarCloud as an organization and give it access permission.