I seem to be having an issue with importing one feed from:ã> http://cdn.nhl.com/rss/news.xmlããIt works fine for me here. If you run the script from a shell / command promptã('jsexec web_feed_importer.js') do you see any error messages?ããAre you adding this feed for the first time, or did you just recently noticeãthere hadn't been any new items in a while? It looks to me like they haven'tãposted anything there since mid-July.ãã---ãechicken ãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
echicken wrote to Bill McGarrity <=-ãã > I seem to be having an issue with importing one feed from:ã > http://cdn.nhl.com/rss/news.xmlãã ec> It works fine for me here. If you run the script from a shell /ã ec> command prompt ('jsexec web_feed_importer.js') do you see any errorã ec> messages?ãã ec> Are you adding this feed for the first time, or did you just recentlyã ec> notice there hadn't been any new items in a while? It looks to me likeã ec> they haven't posted anything there since mid-July.ããweb_feed_importer.js works correctly for all the other rss feeds I have listedãin my modops.ini file except for the link above.ããI created a new modopts.ini file listing only:ãã2nhl = http://cdn.nhl.com/rss/news.xmlããThis is what I get...ããC:\sbbs\exec>jsexec web_feed_importer.jsããJSexec v3.17a-Win32 (rev 1.183) - Execute Synchronet JavaScript ModuleãCompiled Sep 5 2016 05:02:42 with MSC 1800ããLoading configuration files from C:\SBBS\CTRLãJavaScript-C 1.8.5 2011-03-31ãJavaScript: Creating runtime: 8388608 bytesãJavaScript: Initializing context (stack: 16384 bytes)ããReading script from C:\sbbs\exec\web_feed_importer.jsãC:\sbbs\exec\web_feed_importer.js compiled in 0.00 secondsãC:\sbbs\exec\web_feed_importer.js executed in 0.36 secondsããIt's like it never sees either the sub or it's not reading the page correctly.ãããã--ããBillããTelnet: tequilamockingbirdonline.netãWeb: bbs.tequilamockingbirdonline.net:81ãFTP: ftp.tequilamockingbirdonline.net:2121ãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - Toms River, NJã
I created a new modopts.ini file listing only:ã> 2nhl = http://cdn.nhl.com/rss/news.xmlããIs this entry in a '[feeds]' section of your new 'modopts.ini' file?ãã> Reading script from C:\sbbs\exec\web_feed_importer.jsã> C:\sbbs\exec\web_feed_importer.js compiled in 0.00 secondsã> C:\sbbs\exec\web_feed_importer.js executed in 0.36 secondsãã> It's like it never sees either the sub or it's not reading the pageã> correctly.ããThere's no error message in there, so it's not clear that anything's actuallyãgoing wrong. That's pretty much the output I would expect to see if the scriptãdoesn't find any new messages to import from the feed.ã ãAre you adding this feed to that sub for the first time, or was it already setãup and you noticed that no new messages were coming in?ããPlease try the following:ãã- Create a new message area, with an internal code of 'TESTNHL'ã- Restart Synchronet or wait for the BBS to recycleã- Add 'testnhl = http://cdn.nhl.com/rss/news.xml' to the '[feeds]' section ofã'ctrl/modopts.ini'ã- Run 'web_feed_importer.js' via jsexec againããOn my end, the script takes .5 seconds to run and import all of the messagesãfrom that feed into a new message area. Subsequent executions (with no newãmessages to import) take anywhere from .2 to .35 seconds.ãã---ãechicken ãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
echicken wrote to Bill McGarrity <=-ãã ec> Re: web_feed_importer.jsã ec> By: Bill McGarrity to echicken on Mon Jan 23 2017 17:43:19ãã BM> http://rss.uptimerobot.com/u393104-a7daeb14e4919ab941ba59354bf80355ãã ec> So, I just did a test with that feed, and it imported fine for me. Noã ec> errors.ãã BM> Unknown scheme! 'undefined'ã BM> SyntaxError: XML tag name mismatch (expected hr)ã BM> SyntaxError: XML tag name mismatch (expected hr)ãã ec> It's possible that there was an error on the other side (at the feedã ec> provider, Uptime Robot). That 'expected hr' bit indicates that the XMLã ec> parser encountered an <hr> tag, which I wouldn't expect to seeã ec> unescaped/unencoded in an RSS or Atom feed. My guess is that theã ec> parser was looking at one of their error pages (404, 500, 503, etc.),ã ec> which wouldn't work too well.ããif I type that address into a browser... I get this..ãã<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">ã<channel>ã<title>Uptime Robot - All Monitors</title>ã<link>http://www.uptimerobot.com/</link>ã<description>Sending the status of your websites via RSS.</description>ã<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self"ãtype="application/rss+xml"ãhref="http://rss.uptimerobot.com/u1-5b5168eb2ed3396e02b6b7d4459cf634/"/>ã<lastBuildDate>Tue, 17 Jan 2017 02:40:46 -0500</lastBuildDate>ããI did some mkore digging and found a bad link that was causing the problems. Iãremoved them and poof... it worked.ããThanks for help...ããã--ããBillããTelnet: tequilamockingbirdonline.netãWeb: bbs.tequilamockingbirdonline.net:81ãFTP: ftp.tequilamockingbirdonline.net:2121ãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - Toms River, NJã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 128:41:56 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |