Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL error 7 : Failed to connect to trello.com port 443: Timed out #14

Closed
theovaldi opened this issue Sep 22, 2016 · 3 comments
Closed

Comments

@theovaldi
Copy link

Hello Guys,

I'm having a problem when i'm trying to use cURL, the error was like this :

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ConnectException' with message 'cURL error 7: Failed to connect to trello.com port 443: Timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\TRELLO\trello\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:186 Stack trace: #0 C:\xampp\htdocs\TRELLO\trello\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\xampp\htdocs\TRELLO\trello\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\xampp\htdocs\TRELLO\trello\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(45): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #3 C:\xampp\htdocs\TRELLO\trello\ve in C:\xampp\htdocs\TRELLO\trello\vendor\stevenmaguire\trello-php\src\Http.php on line 272

I already try to google this kind of problem and how to handle them, but unfortunately it didn't help mine, can someone help me to fix this error? is it because Firewall block the Port? the network i use is my company's network..

@stevenmaguire
Copy link
Owner

These issues are typically related to your network configuration and not the code within the trello-php package. Contact your network administrator.

@theovaldi
Copy link
Author

thank you so much steven, very appreciate your help..

@theovaldi
Copy link
Author

@stevenmaguire heyy steve, sorry to disturb your time, i wanna ask you, if i use proxy will this error still occured?

i try this, and failed, is it because my code didn't work? or still because the network configuration?

$url = 'https://google.com';
$proxy = '172.16.5.23';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_PROXYPORT, '8080');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
$curl_scraped_page = curl_exec($ch);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants