Today one of the RSS feeds I was monitoring went down and produced an HTML error page. That one got parsed and was sent to $.parser - which broke on the json.rss.channel ... and actually brought the whole application down. Here is a simple fix that checks whether there is results.rss before going to parser.
Today one of the RSS feeds I was monitoring went down and produced an HTML error page. That one got parsed and was sent to $.parser - which broke on the json.rss.channel ... and actually brought the whole application down. Here is a simple fix that checks whether there is results.rss before going to parser.