Closed FrederickFarfan closed 6 years ago
I'm also started facing similar kind of issue. But with name lookup timeout.
ConnectException in CurlFactory.php line 186: cURL error 6: name lookup timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in CurlFactory.php line 186 at CurlFactory::createRejection(object(EasyHandle), array('errno' => '6', 'error' => 'name lookup timed out', 'url' => 'https://www.google.com/recaptcha/api/siteverify', 'content_type' => null, 'http_code' => '0', 'header_size' => '0', 'request_size' => '0', 'filetime' => '-1', 'ssl_verify_result' => '0', 'redirect_count' => '0', 'total_time' => '0', 'namelookup_time' => '0', 'connect_time' => '0', 'pretransfer_time' => '0', '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' => '', 'certinfo' => array(), 'primary_port' => '0', 'local_ip' => '', 'local_port' => '0')) in CurlFactory.php line 150 at CurlFactory::finishError(object(CurlHandler), object(EasyHandle), object(CurlFactory)) in CurlFactory.php line 103 at CurlFactory::finish(object(CurlHandler), object(EasyHandle), object(CurlFactory)) in CurlHandler.php line 43 at CurlHandler->invoke(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in Proxy.php line 28 at Proxy::GuzzleHttp\Handler{closure}(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in Proxy.php line 51 at Proxy::GuzzleHttp\Handler{closure}(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in PrepareBodyMiddleware.php line 72 at PrepareBodyMiddleware->invoke(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in Middleware.php line 30 at Middleware::GuzzleHttp{closure}(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in RedirectMiddleware.php line 68 at RedirectMiddleware->invoke(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in Middleware.php line 59 at Middleware::GuzzleHttp{closure}(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in HandlerStack.php line 67 at HandlerStack->invoke(object(Request), array('synchronous' => true, 'timeout' => '2', 'handler' => object(HandlerStack), 'allow_redirects' => array('max' => '5', 'protocols' => array('http', 'https'), 'strict' => false, 'referer' => false, 'track_redirects' => false), 'http_errors' => true, 'decode_content' => true, 'verify' => true, 'cookies' => false)) in Client.php line 275
Hi @sehgal10. I am facing your issue. How did you solve it.
@divostar I get the same error in my development environment but when deployed in production it works. It worth mentioning the website I use it on is served through HTTPS.
I am getting this error because my server is behind the proxy.
I fixed this by setting proxy in configuration file
Publish vendor
php artisan vendor:publish --provider="Anhskohbo\NoCaptcha\NoCaptchaServiceProvider"
Add proxy as option
'options' => [
'timeout' => 30,
'proxy' => 'http://User:encodedPassword@Host:Port'
],
Since several days I'm getting this error with my Laravel 5.1 project:
Some ideas?