Whenever I try to import an RSS feed I get the following error.

Download of http://www.icerocket.com/search?tab=blog&q=hypotheken&rss=1 failed with code 403.

Can anyone reproduce this?

Comments

Fredrik A’s picture

I can, have the same problem regardless of feed. Could it be some server setting or smthng?

My settings atm:
Attached to: [none]
Refresh: every 30 min
Import on create
Change
Fetcher
Inställningar
HTTP Fetcher
Download content from a URL.
Change
Parser
Inställningar
Common syndication parser
Parse RSS and Atom feeds.
Change
Processor
Inställningar
Mapping
Node processor
Create and update nodes.

EDIT: Tried the dev version too, same error.

Attila’s picture

It has obviously something to do with the settings of the server where the feed is hosted.
After saving the feed as an xml-file and uploading it to my own server the feed import went just fine.

But that's still not a solution... Any ideas?

EDIT: It's not even a Feeds issue. Same thing with Aggregator module. After some searching I found out it has to do something with httpd.conf settings, but I'm not sure what and how to solve it.

http://blog.techstacks.com/2009/06/drupal-one-fix-for-403-forbidden-erro...
http://blog.ajoian.ro/2011/07/how-to-check-drupal7-aggregator-403.html

Attila’s picture

Is there really nobody who knows the solution?

dervishmoose’s picture

@Attila: There are several things that can cause a 403 forbidden error. I can confirm that you are correct it is a webserver (Apache, IIS, etc...) issue and not a Drupal or feeds issue.

Can you see your xml feed in a browser without logging in? Is there any IP restrictions in place?

I found that I had restricted my XML feed to an IP address range in my .htaccess file. I simply added my server's IP address to the allowed list and all was good.

Anonymous’s picture

I have the same error 403 with 7.x-2.0-alpha4 when I restrict the (views with module datasource) user access of the generated XML page.

When I restrict the access of the xml page to the administrator role the xml view is generated, the xml page is viewable for the administrator role, not for other roles.
As an administrator I start the import of feed items, the proces bar is shown a few seconds, it looks like it is importing the items. Then it stops wit the 403 error: nothing is done.

When the master access restriction of the view is 'none' the feeds import is doing his job perfect.

Is it a webserver issue, I am not sure...

ydx’s picture

Still has this problem in 7.x-2.0-alpha5.

same problem as cmseasy

anyhelp?

demonrage’s picture

can somebody tell us what configuration we need to do to fix this

aniszek1’s picture

I have the same problem. But in my site from a have the xml file i must previously login.

now i do not know hov to setup the feeds to imports xml from other protected drupal site.

when i setup xml to be available to all, even for not logged then feeds work fine.

twistor’s picture

Component: Feeds Import » Code
Issue summary: View changes
Status: Active » Closed (outdated)