Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
webflo CreditAttribution: webflo commentedIncrease the drupals 'http_request_timeout' variable. e.g. variable_set('http_request_timeout', 25) or with "drush vset http_request_timeout 25"
Comment #2
zazinteractive CreditAttribution: zazinteractive commentedWhere do we make that set? and is the second parameter in seconds?
Comment #3
webflo CreditAttribution: webflo commentedLook into your variables table. Yes the parameter is in seconds.
Comment #4
charlie-s CreditAttribution: charlie-s commentedwebflo -- I do not have that variable in my variables table; am I correct to create it or are we running different Drupal versions?
Comment #5
pfrenssencsdco, 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.
Comment #6
brycesenz CreditAttribution: brycesenz commentedIs 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
to
As an aside, it would be nice to add this to the UI administration section.
Comment #7
PatchRanger CreditAttribution: PatchRanger commentedPlease 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.
Comment #9
kenorb CreditAttribution: kenorb commented