search

Home  >  Q&A  >  body text

php - guzzlehttp/guzzle 错误

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 51: gnutls_handshake() warning: The server name sent was not recognized (see http://curl.haxx.se/libcurl/c/libcurl- errors.html) in /home/vagrant/www/test/xxx/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187

It runs correctly on my Alibaba Cloud server and runs as above on my virtual machine. I don’t know what is the cause

Solved, refer to (http://blog.csdn.net/sgwhp/ar...), it is a problem with PHP compilation:
First sudo apt-get install libcurl4-openssl-dev
Recompile and install the php curl library
Perfect solution

phpcn_u1582phpcn_u15822822 days ago1005

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 13:12:14

    It may be your DNS problem,
    Change the DNS of your virtual machine, use alidns, 223.5.5.5

    reply
    0
  • Cancelreply