php - guzzlehttp/guzzle 错误
phpcn_u1582
phpcn_u1582 2017-05-16 13:10:14
0
1
968
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_u1582
phpcn_u1582

reply all(1)
漂亮男人

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template