Curl Error 28 Operation Timed Out After 15 Seconds
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about curl operation timed out after 0 milliseconds with 0 out of 0 bytes received Stack Overflow the company Business Learn more about hiring developers or posting ads with
Operation Timed Out After Milliseconds With 0 Bytes Received
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a operation timed out after 5000 milliseconds with 0 bytes received community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Curl error: Operation timed out up vote 1 down vote favorite I have the following
Curl Operation Timed Out After Milliseconds
fatal error when trying to use Curl: PHP Fatal error: Uncaught HTTP_Request2_MessageException: Curl error: Operation timed out after 30000 milliseconds with 0 bytes received in /usr/share/php/HTTP/Request2/Adapter/Curl.php on line 200 Exception trace Function Location 0 HTTP_Request2_Adapter_Curl::wrapCurlError('Resource id #12') /usr/share/php/HTTP/Request2/Adapter/Curl.php:200 1 HTTP_Request2_Adapter_Curl->sendRequest(Object(HTTP_Request2)) /usr/share/php/HTTP/Request2.php:959< in /usr/share/php/HTTP/Request2/Adapter/Curl.php on line 172 However, I can't see how to best debug it. There's no reference to any line of code I've written, only the HTTP_Request2 and Curl operation timed out after 30000 milliseconds with 0 bytes received modules. What's the best approach to try and resolve this? php curl share|improve this question asked Feb 1 '14 at 17:25 alias51 1,878103383 have you tried debugging before and after the statements in your code that actually make the curl commands? try and find the offending request that way? from there you can try it command line, with the -v switch, and try and get more info that way. possibly the URL has now 404'd. –thescientist Feb 1 '14 at 17:30 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote Your curl gets timed out. Probably the url you are trying that requires more that 30 seconds. If you are running the script through browser, then set the set_time_limit to zero for infinite seconds. set_time_limit(0); Increase the curl's operation time limit using this option CURLOPT_TIMEOUT curl_setopt($ch, CURLOPT_TIMEOUT,500); // 500 seconds It can also happen for infinite redirection from the server. To halt this try to run the script with follow location disabled. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); share|improve this answer answered Feb 1 '14 at 21:18 Sabuj Hassan 20.8k52046 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up u
message: [ Message body ] [ More options ] Related messages: [ Next message ] [ Previous
Increase Curl Timeout
message ] From: SourceForge.net
Operation Timed Out After 100000 Milliseconds With 0 Bytes Received
2010 23:04:52 +0000 Bugs item #3061535, was opened at 2010-09-07 15:05 Message generated for change curl error code 28 (Comment added) made by rodricg You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3061535&group_id=976 Please note that this message will contain a full copy of the comment http://stackoverflow.com/questions/21501159/curl-error-operation-timed-out thread, including the initial issue submission, for this request, not just the latest update. Category: http Group: wrong behaviour >Status: Open Resolution: Fixed Priority: 5 Private: No Submitted By: Rodric Glaser (rodricg) Assigned to: Daniel Stenberg (bagder) Summary: CURLOPT_TIMEOUT Initial Comment: Curl will not abort the operation until
connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes FeedsIssues http fetch request... timing out. Closed (fixed)Project:FeedsVersion:6.x-1.0-beta10Component:DocumentationPriority:NormalCategory:Support requestAssigned:UnassignedReporter:IrishGringoCreated:February 2, 2011 - https://www.drupal.org/node/1048810 16:22Updated:March 4, 2016 - 23:52 Log in or register to update this issue Jump to:Most recent comment I have been trying to use feeds to import a cvs from a site using the http fetcher. http://www.faa.gov/airports/airport_safety/airportdata_5010/menu/nfdcfac... I am getting this error: cURL error (28) Operation timed out after 15000 milliseconds with 901120 bytes received for http://www.faa.gov/airports/airport_safety/airportdata_5010/menu/nfdcfac... any sugestions on how to resolve operation timed this? Comments Comment #1 webflo CreditAttribution: webflo commented February 3, 2011 at 9:27am Component: Miscellaneous ยป Documentation Increase the drupals 'http_request_timeout' variable. e.g. variable_set('http_request_timeout', 25) or with "drush vset http_request_timeout 25" Log in or register to post comments Comment #2 zazinteractive CreditAttribution: zazinteractive commented February 19, 2011 at 9:18am Where do we make that set? and is the second parameter in seconds? Log operation timed out in or register to post comments Comment #3 webflo CreditAttribution: webflo commented March 1, 2011 at 10:08am Look into your variables table. Yes the parameter is in seconds. Log in or register to post comments Comment #4 charlie-s CreditAttribution: charlie-s commented April 26, 2011 at 5:30pm webflo -- I do not have that variable in my variables table; am I correct to create it or are we running different Drupal versions? Log in or register to post comments Comment #5 pfrenssen CreditAttribution: pfrenssen commented May 17, 2011 at 12:37pm csdco, yes you can create this variable yourself. If the variable is not present it just means Feeds will use the default value of 15 seconds. Log in or register to post comments Comment #6 brycesenz CreditAttribution: brycesenz commented November 6, 2011 at 2:36pm Is the solution to this issue the same in D7, or has the variable structure changed? I just changed the line in http_request.inc from curl_setopt($download, CURLOPT_TIMEOUT, variable_get('http_request_timeout', 15)); to curl_setopt($download, CURLOPT_TIMEOUT, variable_get('http_request_timeout', 60)); As an aside, it would be nice to add this to the UI administration section. Log in or register to pos