Y
Y
Yuri2012-10-02 08:32:00
PHP
Yuri, 2012-10-02 08:32:00

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

5 answer(s)
M
Melkij, 2012-10-02
@modestguy

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.

Y
Yuri, 2012-10-02
@modestguy

The timeout of 30s passed, but the request was not completed.
Suggest to try:
$client->setCurlOption('CURLOPT_TIMEOUT_MS', 60000);
?

Y
Yuri, 2012-10-02
@modestguy

$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?

Y
Yuri, 2012-10-03
@modestguy

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!

M
mokaton, 2012-10-16
@mokaton

Taking this opportunity I am looking for a PHP coder who is familiar with SoapClient, NuSOAP, and generally knows how to prepare SOAP in PHP. We write in a personal, or we can easily find contacts through the links in the profile)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question