Failed to fetch feed

Failed to fetch feed "http://www.sitename.com/feed/". The resource could not be retrieved because of a client error with code 400 

Server returned 36743 characters, of which 150 are below: 

...

Cause

This error is due to the feed server responding with an HTTP status code 400 and can be caused by the following:

  • SimplePie, the underlying RSS library sends its name as the User-Agent header,
  • This confuses the server which is configured to reply with error 400 to unknown user agents.
  • This would display the above error message.

Solution

The solution is to use the Feed Request User Agent setting to override SimplePie’s User-Agent header.

If non-empty, this exact string will be sent with every request made by WP RSS Aggregator for a feed source XML document. If you find your self receiving the above error, try changing this to something else.

The default value is determined by

  • SimplePie library
  • Reflects its name
  • Version and build numbers

To fix this,

  1. Try setting the Feed Request  User-agent  setting to something more standard
  2. This could be something like the user-agent sent by a popular browser.
  3. Try using the user-agent sent by your browser current browser.
    1. Click here to find your Browser User Agent String.


Alternative Error

Failed to fetch feed “http://www.somesite.com/rss”. The resource could not be retrieved because of a client error with code 404. 

Server returned 0 characters:

...

Cause

If you see an error similar to the one above and you are able to access the feed source in the browser, then it is possible that the server is responding in an unexpected way to the user-agent that is sent with each feed request.

Solution

To fix this,

  1. Try setting the Feed Request Useragent setting to something more standard
  2. This could be something like the user-agent sent by a popular browser.
  3. Try using the user-agent sent by your browser current browser.
    1. Click here to find your Browser User Agent String.

Still need help? Contact Us Contact Us