New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GuzzleHttp RequestException - cURL error 56: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 #2131
Comments
Would it have anything to do with the HTTP buffer size ? https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html Did you try to play with it ? new Client([ |
was it solved? It's happening me in some cases |
I would be also interested in an answer. |
I have no idea if it has been solved. This is how I worked around this issue.
|
It seems that this site is using anti-scraping protection. You could try to change user-agent header. |
Please read this: http://docs.guzzlephp.org/en/stable/request-options.html#verify Also try (for testing purposes) to set |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions. |
it works for me. Thank you. |
I'm getting this error when I make a request to a particular website (https://www.retailchoice.com).
I'm using Guzzle from the Symfony framework.
So when I execute this code:
$this->crawler = $this->client->request('GET', "https://www.retailchoice.com/");
I get this error:
PHP Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 56: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in D:\Data\xampp5.6.34\xampp\ehjdata\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:186
Stack trace:
#0 D:\Data\xampp5.6.34\xampp\ehjdata\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 D:\Data\xampp5.6.34\xampp\ehjdata\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 D:\Data\xampp5.6.34\xampp\ehjdata\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 D:\Data\xampp5.6.3 in D:\Data\xampp5.6.34\xampp\ehjdata\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 186
I turned on debug & caught the RequestException & here is the print out:
CApath: none
GET / HTTP/1.1
user-agent: Symfony BrowserKit
host: www.retailchoice.com
Array
(
[errno] => 56
[error] => OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
[url] => https://www.retailchoice.com/
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 78
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 20.766
[namelookup_time] => 0.266
[connect_time] => 0.266
[pretransfer_time] => 1.86
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 104.116.47.229
[certinfo] => Array
(
)
)
I don't have issues when I try other websites. Just this one. What should I do to solve this? Thank you.
The text was updated successfully, but these errors were encountered: