RSS Not Loading Properly

  • 1
  • Problem
  • Updated 4 months ago
I have a RSS widget running but it only works some times. It will load for a bit then will just go blank. No specific amount of time, just happens. I've tried a few feeds for our local news such as http://rss.cbc.ca/lineup/canada-hamiltonnews.xml and also https://news.google.com/news/rss/search/section/q/Hamilton%20Ontario/Hamilton%20Ontario?hl=en-CA&...

I understand that the first isn't valid according to the W3 validator but the second is(with some recommendations), so I don't think that's the issue.

I've also tried fiddling with the time of the widget changing from PUD to different times to maybe help it refresh but it doesn't seem to work.

Any suggestions?
Photo of BayBrook

BayBrook

  • 374 Points 250 badge 2x thumb

Posted 4 months ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,076 Points 20k badge 2x thumb
Hi BayBrook,

Since the first RSS feed doesn't validate, let's eliminate that from the mix. The second does validate, but one of the recommendations is that is has a security concern for potentially dangerous content. This could be where you're running into the issue. Rise Player itself isn't blocking this content, but there are many variables in the mix that could be, like your network, or permissions on the Media Player itself.

Could you try testing with this feed? https://www.nasa.gov/rss/dyn/breaking_news.rss This is one of the feeds that we use for testing of the RSS Widget. We'd like to know if that one loads 100% of the time.

Thanks.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,076 Points 20k badge 2x thumb
After further investigation, the RSS Widget while set to scroll to the left will only support "Show Description Snippet" up to 211 characters. Anything above 211 characters will result in nothing showing.

I think this explains why your original feeds were only sometimes working. Some of those stories are less than 211 characters. The ones with more than 211 would not render.

I'm going to log a defect for the developers to investigate. Again, I'm not sure if this is something that can be fixed at this time, but I'll report back with their findings!
Photo of BayBrook

BayBrook

  • 374 Points 250 badge 2x thumb
I did a bit of testing myself in relation to the font size. It's almost like its the total size of the text is what's stopping it. I'll try to explain.

  • Change dimensions to 1920 width & 400 height - Still didn't work.
  • I chopped the description down to 120 characters - Worked
  • Bumped the font sizes up a lot (72 px header, 48 px desc and left 14px for time/author) - Stopped working
  • Kept the fonts large but put the max items in queue from 10 to 2 - Worked
Seems like if the sheer amount of text is too big it stops. Hopefully that helps you in your testing.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,076 Points 20k badge 2x thumb
BayBrook,

It looks like we had a similar issue logged some time back. https://github.com/Rise-Vision/widget-rss/issues/83

Our developer confirmed that the max width/height of canvas in Chrome is 32,767 pixels. It's possible that the amount of stories in the RSS feed, combined with the amount of characters in each story is much larger than the 32,767 pixels, which would cause this error.

They have not responded to the new defect I have logged yet, but in the meantime, I would suggest limiting description snippet to 211.
Photo of BayBrook

BayBrook

  • 374 Points 250 badge 2x thumb
Okay, I will adjust the presentation. Do you think this could cause the RiseVision application to freeze or is that probably a whole other thing.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,076 Points 20k badge 2x thumb
BayBrook,

I would say it's unlikely that this could be causing a Media Player to freeze.

I've spoken with the developers and at this time it's a matter of the maximum width/height in Chrome. They recommend you either display snippets, or instead cut your queue down from 10 to a lower number of stories. You may find a magic number that works for the RSS Feed that you use by tinkering with this number.

Thanks.