SonarQube Publish Error in Azure DevOps

We are encountering an issue where Azure DevOps is not able to publish the quality gate result in the Azure build result.

024-07-18T11:34:45.3920430Z ##[debug]SONARQUBE_ENDPOINT=***
2024-07-18T11:34:45.3922368Z ##[debug]SONARQUBE_ENDPOINT=***
2024-07-18T11:34:45.3933248Z ##[debug][SQ] API GET: ‘/api/metrics/search’ with full URL “http://10.184.64.4:9000/api/metrics/search?f=name&ps=500” and query “{“f”:“name”,“ps”:500}”
2024-07-18T11:34:45.3940263Z ##[debug]Not using a proxy agent
2024-07-18T11:34:45.4132380Z ##[debug][SQ] API GET ‘/api/metrics/search’ failed, error is invalid json response body at http://10.184.64.4:9000/api/metrics/search?f=name&ps=500 reason: Unexpected end of JSON input
2024-07-18T11:34:45.4134204Z ##[error][SQ] API GET ‘/api/metrics/search’ failed, error is invalid json response body at http://10.184.64.4:9000/api/metrics/search?f=name&ps=500 reason: Unexpected end of JSON input
2024-07-18T11:34:45.4135694Z ##[debug]Processed: ##vso[task.issue type=error;][SQ] API GET ‘/api/metrics/search’ failed, error is invalid json response body at http://10.184.64.4:9000/api/metrics/search?f=name&ps=500 reason: Unexpected end of JSON input
2024-07-18T11:34:45.4136943Z ##[warning]Error while executing SonarQube:Publish task: Could not fetch metrics
2024-07-18T11:34:45.4137626Z ##[debug]Processed: ##vso[task.issue type=warning;]Error while executing SonarQube:Publish task: Could not fetch metrics
2024-07-18T11:34:45.4138224Z ##[debug]task result: Failed
2024-07-18T11:34:45.4138872Z ##[error]Could not fetch metrics
2024-07-18T11:34:45.4139251Z ##[debug]Processed: ##vso[task.issue type=error;]Could not fetch metrics
2024-07-18T11:34:45.4140149Z ##[debug]Processed: ##vso[task.complete result=Failed;]Could not fetch metrics
2024-07-18T11:34:45.4189842Z ##[section]Finishing: SonarQubePublish

Hey there.

This is an issue some users faced before that involved proxy settings on the build agent

What version of the SonarQube extension for Azure DevOps are you using?