unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
612 stars 314 forks source link

cURL error 6: Could not resolve host: api.paystack.co (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) #43

Closed kenzdozz closed 6 years ago

kenzdozz commented 6 years ago

When there is poor network, this error page is displayed... It doesn't look good.

in CurlFactory.php (line 186)

at CurlFactory::createRejection(object(EasyHandle), array('errno' => 6, 'error' => 'Could not resolve host: api.paystack.co', 'url' => 'https://api.paystack.co/transaction/verify/4mRfYfLTXlv781bsAMbWNWRaZ', '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)