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 this?

Comments

webflo’s picture

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"

zazinteractive’s picture

Where do we make that set? and is the second parameter in seconds?

webflo’s picture

Look into your variables table. Yes the parameter is in seconds.

charlie-s’s picture

webflo -- I do not have that variable in my variables table; am I correct to create it or are we running different Drupal versions?

pfrenssen’s picture

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.

brycesenz’s picture

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.

PatchRanger’s picture

Status: Active » Fixed

Please refer to related issue #1480902: Are there timeouts on Feed importers?.
It has a patch that adds http_request_timeout setting to admin UI.
So marking this as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kenorb’s picture