SonarQube Publish Quality Gate Result error 400: API GET '/api/ce/task' failed, status code was: 400

Hi Ann,

I hope this message finds you well. I’ve been encountering the same issue over the past few days. I’m using SonarCloud in an Azure DevOps pipeline for PR analysis of a TypeScript project. However, in the SonarCloudPublish@1 step, I’m facing a failure with the following error:

##[error][SQ] API GET ‘/api/ce/task’ failed, status code was: 404
##[error][SQ] Could not fetch task for ID ‘AY3pk2SqC6LpY66u24U_’

Interestingly, when I use Postman to hit the same API endpoint, I can see the results. Could you please assist in resolving this issue?

Thanks