Not working with Facebook RSS #39

saturngod opened this Issue Dec 10, 2012 · 4 comments


3 participants
var feedparser = require('feedparser');
var request = require('request');

function callback (article) {
  console.log('Got article: %s', JSON.stringify(article));

  .on('article', callback);

got following error

        throw arguments[1]; // Unhandled 'error' event
Error: Remote server did not respond with a feed
    at Request.FeedParser.parseUrl.handleResponse (/Users/lusi/SkyDrive/Projects/Web/arryone/node_modules/feedparser/main.js:1169:13)
    at Request.EventEmitter.emit (events.js:96:17)
    at ClientRequest.<anonymous> (/Users/lusi/SkyDrive/Projects/Web/arryone/node_modules/feedparser/node_modules/request/main.js:521:12)
    at ClientRequest.g (events.js:192:14)
    at ClientRequest.EventEmitter.emit (events.js:96:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1462:7)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
    at Socket.socketOnData [as ondata] (http.js:1367:20)
    at TCP.onread (net.js:403:27)

Fixed , need to add header

var reqObj = {'uri': '',
'headers': {'user-agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11'}};

request(reqObj, function (error, response, body) {

@saturngod saturngod closed this Dec 10, 2012

vinyll commented Dec 27, 2012

+1. @saturngod : thanks for the fix !


danmactough commented Dec 28, 2012

As of 13d19af, FeedParser.parseUrl() can take handle those headers directly.


vinyll commented Dec 28, 2012

Great ! Updated package and just works fine now. Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment