GuzzleHttp \ Exception \ RequestException:cURL错误56:LibreSSL SSL_read:SSL_ERROR_SYSCALL,errno 60

时间:2018-03-29 13:06:33

标签: php curl guzzle goutte guzzlehttp

为什么我收到此错误,我正在使用“fabpot / goutte”:“^ 3.2”进行抓取。有时候它会给我正确的数据但主要显示这个错误,可能是什么原因。

以下是完整的错误。

 GuzzleHttp\Exception\RequestException  : cURL error 56: LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

  at /Users/siddharthghedia/code/scraping/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186
    182|
    183|         // Create a connection exception if it was a specific error code.
    184|         $error = isset($connectionErrors[$easy->errno])
    185|             ? new ConnectException($message, $easy->request, null, $ctx)
  > 186|             : new RequestException($message, $easy->request, $easy->response, null, $ctx);
    187|
    188|         return \GuzzleHttp\Promise\rejection_for($error);
    189|     }
    190|

  Exception trace:

  1   GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle))
      /Users/siddharthghedia/code/scraping/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:149

  2   GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
      /Users/siddharthghedia/code/scraping/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:102

  Please use the argument -v to see more details.

任何帮助都将受到高度赞赏。

0 个答案:

没有答案