Closed mitchdowney closed 6 years ago
Whoops 100% my bad. I had on error handling setup for the request, but not the feedParser instance itself 😳
Problem is solved. FeedParser is great, thanks for building it!
Thanks @mitchdowney. Glad you figured it out!
feedparser@2.2.7 node@8.4.0 Problem feeds: http://jerriwilliams.com/feed/podcast/ http://feeds.feedburner.com/JonoBen-TheRock
The feed URL above returns a 200 success response but an invalid feed. When I try to parse this URL, FeedParser gives me the following uncaught error:
Since the req.on('error') listener is never called, the app never has the chance to handle the error, and feedparser fails then stops running.
I tried setting
resume_saxerror: false
but I get the same result.It turns out a valid feed URL can be found at http://jerriwilliams.com/feed/podcast, but ideally FeedParser doesn't crash completely whenever a URL returns a 200 response with invalid feed content.
Any ideas how we can fix this and / or work around the issue? Thanks!