OlivierCC / spfx-40-fantastics

This package is a sample kit of Client Side Web Parts built on the SharePoint Framework SPFx. You can find here different kind of high visual web parts as carousel, images galleries, animations, map, editors, etc.
MIT License
407 stars 279 forks source link

RSS feed webpart not working because of broken API #93

Open mharst opened 5 years ago

mharst commented 5 years ago

error is: Failed to load resource: net::ERR_NAME_NOT_RESOLVED

url linked to is: https://query.yahooapis.com/v1/public/yql?q=SELECT%20channel.item%20FROM%20feednormalizer%20WHERE%20output%3D%22rss_2.0%22%20AND%20url%20%3D%22https%3A%2F%2Fblogs.office.com%2Ffeed%2F%22%20LIMIT%2010&format=json&diagnostics=true&callback=jQuery22405817467181776053_1546603975923&_=1546603975924

ojegaden commented 5 years ago

Yahoo YQL service deprecated on January 3rd 2019: https://developer.yahoo.com/yql/

Here is a potential workaround for communication sites (Group connected sites should have RSS feed webparts): https://social.technet.microsoft.com/Forums/en-US/b6068691-5eac-44ce-86c5-f0949f17adcb/communications-site-using-rss-feeds?forum=onlineservicessharepoint

mharst commented 5 years ago

Did not do the job for me. Isn't there ANOTHER solution to import a RSS feed to a modern communication site?

ojegaden commented 5 years ago

http://sharepointshowcase.office.com/rss-reader

lewisclements commented 5 years ago

Is there a solution to this problem other than purchasing a different web part from the link above? The RSS Reader is not working for me either.

devangbhavsar89 commented 5 years ago

Hi @lewisclements, what can be done is we can modify existing web part code, so that it doesn't use FeedEk plugin any more to parse the RSS feeds, but instead make use of some other module which doesn't depend on any 3rd party API. After a brief research, rss-parser npm module looks promising, and I'm pretty cretain that it can be used to fix this problem.

Hope this helps. Please let me know, if you need more info around this workaround.

bdavdson commented 5 years ago

https://github.com/eoverfield/sp-dev-fx-webparts/tree/react-rss-reader/samples/react-rss-reader

So far, this part has worked well as a replacement.

ojegaden commented 5 years ago

Thanks bdavdson for the replacement web part, much appreciated!

stumac31 commented 5 years ago

Hi @devangbhavsar89

I'm trying to set up a communication site and would appreciate any advice on how to use the rss-parser npm module instead of the FeedEk plugin.

Many thanks Stuart

vivekkanse commented 5 years ago

Is there a solution to this problem? The RSS Reader is not working for me. It was already publish to Production site and now its suddenly stop working.

stumac31 commented 5 years ago

http://amrein.com/office365/home/rss-feed-ticker/ Try this

devangbhavsar89 commented 5 years ago

Hi @vivekkanse & @stumac31,

Sorry for the delayed response. I just noticed your comments on this thread. Yup, I've been successfully able to get the RSS feed web part working with rss-parser module.

Please try adding code-stub as mentioned here inside rss-reader-web-part-using-rss-parser.js from my Gist, into your web part. Once it is incorporated correctly, you should be able to get the RSS feed web part working back again. Hope this helps!

Cheers, Happy Coding!

vivekkanse commented 5 years ago

Hi @devangbhavsar89 , Sorry parser solution not helping out.

devangbhavsar89 commented 5 years ago

Hmm, can you give some more details around what exact error are you getting or what part of it is not working? It had worked for me, when I'd tried it quite some time back, in one of our customer specific implementation.

vivekkanse commented 5 years ago

Hi @devangbhavsar89 , Thanks for your response. I have used the rss-parser and I am able to get the data . Unfortunately this parser is not able to convert the special charaters like "ø , å , æ " as output, currently it is converting this characters into "�". Any solution on this.

Thanks