Timeout issue with Sonar cloud in Azure devops pipeline

Getting Sonar cloud time our issue with Sonar Prepare/ Publish tasks in Azure devops.
Error logs -
##[error][SQ] API GET ‘/api/metrics/search’ failed, error was: {“errno”:“ETIMEDOUT”,“code”:“ETIMEDOUT”,“syscall”:“connect”,“address”:“3.162.103.15”,“port”:443}

[error][SQ] API GET ‘/api/server/version’ failed, error was: {“errno”:“ETIMEDOUT”,“code”:“ETIMEDOUT”,“syscall”:“connect”,“address”:“3.162.103.8”,“port”:443}

All Pipeline were running successfully previously and then we are getting time out issue for sonar tasks (Its intermittent issue)

Hey there.

Thanks for the report – we haven’t had any others like it. Are you still facing the issue with SonarCloud?

Hey,
Yes, still facing issue.

Thanks.

Are these self-hosted build agents?

Yes, these are self-hosted agents.
Thanks.

My gut tells me that the IP Address of SonarCloud (which changes regularly) is being cached on your system and not being refreshed (perhaps having a long DNS TTL configured). Can you check that?

I will check with network team. Anything else you think we should check.
Thanks.

Hi Colin,
Still facing same issue but now showing different IP
{“errno”:“ETIMEDOUT”,“code”:“ETIMEDOUT”,“syscall”:“connect”,“address”:“3.162.103.96”,“port”:443}

  • Did you follow up with your team about how long DNS TTL is configured in your environment?
  • Is there some sort of proxy that is supposed to be proxying your outbound internet connection?

TTL is configured for 20 mnts.