BingAds / BingAds-PHP-SDK

Other
56 stars 45 forks source link

SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from 'clientcenter.api.bingads.microsoft.... #163

Open austinkregel opened 2 years ago

austinkregel commented 2 years ago

Greetings!

Issue There is intermittent failures when initializing the service client, related to fetching the SOAP document

Details Over the last number of months my team has noticed an occasional error popping up related to the instantiation of the ServiceClient in this package.

SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from 'clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v13/CustomerManagementService.svc?singleWsdl' : failed to load external entity "clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v13/CustomerManagementService.svc?singleWsdl"

When tracking down this issue, I learned it can be easily reproducible by killing the internet to the computer running the bit of code. Note, this is just the easiest way I found to reproduce the issue at hand. In production we're receiving occasional 500 errors when the service is initializing.

Questions :eyes:

meip commented 2 years ago

@eric-urban @qitia do you have any insights why the API is so unstable? On one hand the requests take very long to respond and fail often. I monitor it with this dummy script:

#!/bin/bash

while true; do
    echo "$(date) $(curl -s -o /dev/null -I -w "%{http_code}" 'https://clientcenter.api.bingads.microsoft.com/Api/CustomerManagement/v13/CustomerManagementService.svc?WSDL')"
    sleep 1
done
qitia commented 2 years ago

we did not notice customer management API outage recently from internal monitoring and we will do some investigation on how to embed the wsdl inside the package.

austinkregel commented 6 months ago

Hey @qitia I just wanted to update this thread and say this is still occasionally an issue

image