Sudden "Could not connect to host" while accessing bing ads API from PHP SDK

Dmitriy Lezhnev 11 Reputation points

Since 25th of Sept 2022 we see many "SoapFault exception: [HTTP] Could not connect to host" exceptions. We use PHP sdk, upgraded to the latest version as of now.
I logs we see that some requests pass through, while some return that exception.

I see that failed requests were to SearchAccounts, GetUser.

Increasing retry timeouts does not help and error is 100% reproducible, it shows up only for certain requests and not for others.

Any advice what to do here?

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
393 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dmitriy Lezhnev 11 Reputation points

    I found the problem, the soap location returned from Bing is... weird: <soap:address location="https://[::]/Api/CustomerManagement/v13/CustomerManagementService.svc" />

    That explains why only customer related requests failed.

    0 comments No comments