Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot process some Feedburner Feeds #4

Open
jlott1 opened this issue Mar 17, 2018 · 1 comment
Open

Cannot process some Feedburner Feeds #4

jlott1 opened this issue Mar 17, 2018 · 1 comment

Comments

@jlott1
Copy link

jlott1 commented Mar 17, 2018

I was testing a url like this one:
http://feeds.gimletmedia.com/crimetownshow
Which kept returning a feed burner HTML page. This caused the entire parser to fail with "cannot access rss of undefined" error.

I had to change the headers to this for it to work properly. specifically I changed text/html to text/xml

{ 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0', accept: 'text/xml,application/xhtml+xml' }

@timothyjellison
Copy link

@jlott1 Can you share some of your code in a jsbin or snippet so we can see the specific context of the error you're encountering? I just tried Feed.load on that url and the load was successful.

rssToJson.load('http://feeds.gimletmedia.com/crimetownshow', (err, rss) => {
  if (err) {
    console.error(err);
  }

  console.log(rss);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants