enginkizil / FeedEk

FeedEk jQuery RSS/ATOM Feed Plugin
https://jquery-plugins.net/FeedEk/FeedEk.html
MIT License
207 stars 107 forks source link

Uncaught TypeError: Cannot read property 'rss' of null #41

Closed Jckarlos92 closed 5 years ago

Jckarlos92 commented 8 years ago

I'm trying to adapt my old code (which worked nicely when the Google's API was working) and it's giving me this error.

I replaced my old FeedEk.js and I didn't change anything from the .FeedEk constructor

Could you have an idea why is this happening? These are the lines where the Google Console shows the error

    if (!(data.query.results.rss instanceof Array)) {
        data.query.results.rss = [data.query.results.rss];
    }
enginkizil commented 8 years ago

Hi, can you write your feed source url for test?

Jckarlos92 commented 8 years ago

Hi!

It's an internal link (from the company I work for) so you won't get access to that.

Nonetheless, to get the rss news, it uses a php script that receives parameters throught the URL and I don't know if that's causing the error.

The link would be something like this

   https://company.northernlight.com/rss.php?alertId=6931 

Hope that helps!

BradGunnerSGT commented 8 years ago

Having a similar issue, I can share my URL: http://rssfeeds.utsa.edu/default.aspx?Feed=ASAP

This URL works fine in the YQL console so I am thinking that there is something in the way FeedEk is encoding the URL in order to send it to YQL.

FeedEk 3.0 and JQuery 2.1.4

enginkizil commented 8 years ago

Hi @BradGunnerSGT; FeedEk uses feednormalizer table in YQL. So when I try your feed url in YQL console with feednormalizer, i got an error "Could not parse feed data. Invalid rss_2.0 feed, missing channel link"

It seems your feed format is invalid for RSS specification.

enginkizil commented 8 years ago

@Jckarlos92 I advice you to test it on YQL console. Maybe your feed source format is invalid for RSS specification too.

BradGunnerSGT commented 8 years ago

It appears to work fine for me using feednormalizer as well as rss.

screen shot 2015-12-11 at 6 42 05 pm

enginkizil commented 8 years ago

@BradGunnerSGT FeedEk use this query SELECT * FROM feednormalizer WHERE output="rss_2.0" AND url ="http://rssfeeds.utsa.edu/default.aspx?Feed=ASAP"

Result is: Could not parse feed data. Invalid rss_2.0 feed, missing channel link

Error occured because of FeedEk query try to make it rss 2.0 standart as output. Your feed source format is missing channel link.

BradGunnerSGT commented 8 years ago

Ok, that makes sense. I contacted the team that provides that RSS service and they have fixed the feed to fully conform to the RSS 2.0 specs. It's working great now!

enginkizil commented 5 years ago

YQL API is retired on 3th of January 2019. FeedEk v3.1.0 released and YQL API is not using anymore. Please use latest version of FeedEk v.3.1.0 @BradGunnerSGT @Jckarlos92