Drupal Feeds Curl Error 28 Operation Timed Out After
Contents |
all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes FeedsIssues Feeds: cURL error (28) Operation timed out
Operation Timed Out After Milliseconds With 0 Bytes Received
after X milliseconds with 0 bytes received ActiveProject:FeedsVersion:7.x-2.x-devComponent:DocumentationPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:kwaddelCreated:April 26, 2012 - operation timed out after 0 milliseconds with 0 out of 0 bytes received paypal 22:45Updated:March 4, 2016 - 23:53 Log in or register to update this issue Jump to:Most recent comment operation timed out after 100000 milliseconds with 0 bytes received Hi, I'm pretty new to Drupal and the Drupal forums so I was unable to find anything directly related to this or anything that would help. What we are
Curl Operation Timed Out After Milliseconds
trying to do is link in a news feed from a central news location. So the users submit their news to our news site and based on the tags that news story is sent to the right feed. It has been working but recently one of the pages won't update with the new info. I went in and looked
Curl Error Code 28
to make sure that their info was actually being tagged properly and it is and I can see all of it in the XML, but the URL to link to their feed was gone. When I tried to put it back in I got the error above. If I resubmit it again right away it goes through but gives a different error and doesn't update anything. If someone could point me in the right direction or something that would be great. Comments Comment #1 kwaddel CreditAttribution: kwaddel commented May 18, 2012 at 5:30pm Status: Active » Closed (fixed) Log in or register to post comments Comment #2 jenlampton CreditAttribution: jenlampton commented September 4, 2013 at 1:06am Component: Feeds News » Code @kwaddel why was this issue closed? Did you figure it out? if you did could you post your solution here for the rest of us? :) Log in or register to post comments Comment #3 jenlampton CreditAttribution: jenlampton commented September 4, 2013 at 1:06am Component: Code » Feeds News (feature) whoops, didn
all over the world. Join today Download & Extend Drupal Core Distributions curl connect timeout Modules Themes Feeds XPath ParserIssues Fatal error: Class 'FeedsXPathParserDOMXPath' not
Curlopt_timeout
found in Closed (duplicate)Project:Feeds XPath ParserVersion:7.x-1.0-beta3Component:MiscellaneousPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:rotty_deanCreated:April 12, 2012 - 16:11Updated:March 4, 2016 - 23:53 curl timeout php Log in or register to update this issue Jump to:Most recent comment I have a very large XML feed i am trying to import. https://www.drupal.org/node/1549740 When filtering the XML data to only 200 items it all works fine. But when i query the full xml feed (15,000 items around 12mb). I get a timeout error (15s): HRCurlException: cURL error (28) Operation timed out after 15 seconds with 15576108 bytes received for http://im..... in https://www.drupal.org/node/1530062 http_request_get() (line 170 of .....sites\all\modules\feeds\libraries\http_request.inc). so i increase the 15 seconds with the http_request_timeout and this issue then shows: Fatal error: Class 'FeedsXPathParserDOMXPath' not found in ..\sites\all\modules\feeds_xpathparser\FeedsXPathParserBase.inc on line 83 Comments Comment #1 Robin Millette CreditAttribution: Robin Millette commented April 13, 2012 at 12:26pm Status: Active » Closed (duplicate) See #1213324: Parsing big xml file (250 mo /15.000 nodes) Log in or register to post comments Comment #2 kenorb CreditAttribution: kenorb commented March 4, 2016 at 11:53pm Issue summary: View changes Related issues: +#1549740: Feeds: cURL error (28) Operation timed out after X milliseconds with 0 bytes received Log in or register to post comments Add child issue, clone issue Related issues #1549740: Feeds: cURL error (28) Operation timed out after X milliseconds with 0 bytes received News itemsDrupal news Planet Drupal Association news Social media directory Security announcements Jobs Our communityCommunity Getting in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/4858104/how-to-remove-curl-time-limit-in-php policies of this site About Us Learn more about Stack Overflow the http://stackoverflow.com/questions/17610808/php-curl-operation-timed-out-after-120308-milliseconds-with-x-out-of-1-bytes-re company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes operation timed a minute: Sign up How to remove CURL time limit in PHP? up vote 5 down vote favorite 3 I am running a rather long script that fetches the contents of a specified domain and parses the html before running a series of tests on said html. Anyway the script times out after a while. I tried putting this at the operation timed out top of my page but still no luck: set_time_limit(0); Here is the error in question: cURL error number:28 cURL error:Operation timed out after 10000 milliseconds with 316183 out of 6476018 bytes received php share|improve this question asked Feb 1 '11 at 1:50 Sammy 39113 add a comment| 3 Answers 3 active oldest votes up vote 19 down vote accepted You need to set the amount of time curl gets to complete its operations with curl_setopt. The CURLOPT_TIMEOUT setting to be specific. curl_setopt($ch, CURLOPT_TIMEOUT, 400); // the timeout in seconds http://www.php.net/manual/en/function.curl-setopt.php share|improve this answer edited Dec 3 '15 at 4:58 Dawie Strauss 2,3361618 answered Feb 1 '11 at 1:53 profitphp 5,72811619 add a comment| up vote 4 down vote Use the CURLOPT_TIMEOUT option in conjunction with curl_setopt(). curl_setopt($curl, CURLOPT_TIMEOUT, 0); // zero waits indefinitely set_time_limit() only sets how long the script can run. The issue you're having is a cURL timout. http://php.net/curl-setopt share|improve this answer edited Feb 1 '11 at 2:01 answered Feb 1 '11 at 1:54 Jonah 6,54743063 CURLOPT_CONNECTTIMEOUT The number of seconds to wait while trying to con
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 Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up php cURL Operation timed out after 120308 milliseconds with X out of -1 bytes received up vote 4 down vote favorite I'm experiencing this error (see Title) occasionally in my scraping script. X is the integer number of bytes > 0, the real number of bytes the webserver sent in response. I debugged this issue with Charles proxy and here is what I see As you can see there is no Content-Length: header in response, and the proxy still waits for the data (and so the cURL waited for 2 minutes and gave up) The cURL error code is 28. Below is some debug info from verbose curl output with var_export'ed curl_getinfo() of that request: * About to connect() to proxy 127.0.0.1 port 8888 (#584) * Trying 127.0.0.1... * Adding handle: conn: 0x2f14d58 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 584 (0x2f14d58) send_pipe: 1, recv_pipe: 0 * Connected to 127.0.0.1 (127.0.0.1) port 8888 (#584) > GET http://bakersfield.craigslist.org/sof/3834062623.html HTTP/1.0 User-Agent: Firefox (WindowsXP) Ц Mozilla/5.1 (Windows; U; Windows NT 5.1; en-GB ; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Host: bakersfield.craigslist.org Accept: */* Referer: http://bakersfield.craigslist.org/sof/3834062623.html Proxy-Connection: Keep-Alive < HTTP/1.1 200 OK < Cache-Control: max-age=300, public < Last-Modified: Thu, 11 Jul 2013 21:50:17 GMT < Date: Thu, 11 Jul 2013 21:50:17 GMT < Vary: Accept-Encoding < Content-Type: text/html; charset=iso-8859-1 < X-MCP-Cache-Control: max-age=259