Answer the question
In order to leave comments, you need to log in
What kind of error does NuSOAP give and how to treat it?
Good morning, habralyudi! Tell me please. I am using the NuSOAP library for php. When calling the $client->call method, errors like this often appear:
HTTP Error: cURL ERROR: 28: Operation timed out after 30001 milliseconds with 0 bytes received
url: soap.direct.yandex.ru :443/live/v4/soap/
content_type:
http_code: 100
header_size: 25
request_size: 234
filetime: -1
ssl_verify_result: 0
redirect_count: 0
total_time
: 30.033035
namelookup_time: 2.6E-5
connect_time: 0.002464
pretransfer_time: 0.031613
size_upload: 681897
size_download
: 02
download_content_length: -1
upload_content_length: 681897
starttransfer_time: 0.034435
redirect_time: 0
certinfo: Array
Tried adding
$client->setCurlOption('CURLOPT_TIMEOUT_MS', 200);
$client->setCurlOption('CURLOPT_NOSIGNAL', 1);
Does not help.
I google but can't find anything good yet. Hope for help.
Thank you!
Answer the question
In order to leave comments, you need to log in
The timeout of 30s passed, but the request was not completed.
CURLOPT_TIMEOUT_MS is set in milliseconds, i.e. you significantly reduced the timeout, not increased it.
The timeout of 30s passed, but the request was not completed.
Suggest to try:
$client->setCurlOption('CURLOPT_TIMEOUT_MS', 60000);
?
$client->setCurlOption('CURLOPT_TIMEOUT_MS', 120000);
$result = $client->call($command, $params);
Doesn't help :(
By the way, Yandex support said that requests are not received AT ALL. Could this be a problem in libcurl?
Melkij, thank you so much for your help! I poked around nusoap.php, corrected the default timeout value everywhere to 120 - everything worked. The question is closed! Thanks again, good luck with your work!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question