MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    newsfeed gives an error

    Scheduled Pinned Locked Moved Troubleshooting
    newsfeed parser error
    6 Posts 2 Posters 3.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O Offline
      ostfilinchen
      last edited by paviro

      Hi all,

      i get an error with the newsfeed modul. I look in the logfile with ‘pm2 logs’ and i see this error:

      mm-0 Get league table for url http://api.football-data.org/v1/competitions/430/leagueTable
      mm-0 Can't parse feed item:
      mm-0 { text: '\n\n\n\n\n\n',
      mm-0   title: '',
      mm-0   link: { href: 'http://www.tagesschau.de' },
      mm-0   id: 'http://www.tagesschau.de',
      mm-0   updated: '',
      mm-0   summary: '' }
      mm-0 Title: 
      mm-0 Description: 
      mm-0 Pubdate: 
      mm-0 Whoops! There was an uncaught exception...
      mm-0 TypeError: parser.close is not a function
      mm-0     at SAXStream.openf1 (/home/pi/MagicMirror/node_modules/feedme/lib/xmlfeedparser.js:107:14)
      mm-0     at emitOne (events.js:96:13)
      mm-0     at SAXStream.emit (events.js:188:7)
      mm-0     at Object.me._parser.(anonymous function) [as onopentag] (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:258:17)
      mm-0     at emit (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:640:35)
      mm-0     at emitNode (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:645:5)
      mm-0     at openTag (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:841:5)
      mm-0     at Object.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:1404:13)
      mm-0     at SAXStream.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:239:18)
      mm-0     at yoshi.write (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:41:14)
      mm-0 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      mm-0 If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      

      A few lines is the fact that the system is deprecated.

      Had any one else these Errors?

      Best regards
      Daniel


      Note from admin: Please use Markdown on code snippets for easier reading!

      1 Reply Last reply Reply Quote 0
      • B Offline
        bobbob601
        last edited by

        http://api.football-data.org/v1/competitions/430/leagueTable

        => it is a REST api and it does NOT return a RSS feed.

        1 Reply Last reply Reply Quote 0
        • O Offline
          ostfilinchen
          last edited by paviro

          I don’t think the error Comes from the Soccer module. Here is the new log from pm2:

          mm-0 starting internet monitor node helper
          mm-0 Create new news fetcher for url: http://www.heise.de/security/news/news-top-atom.xml - Interval: 300000
          mm-0 Create new news fetcher for url: http://www.n-tv.de/rss - Interval: 300000
          mm-0 Whoops! There was an uncaught exception...
          mm-0 TypeError: parser.close is not a function
          mm-0     at SAXStream.openf1 (/home/pi/MagicMirror/node_modules/feedme/lib/xmlfeedparser.js:107:14)
          mm-0     at emitOne (events.js:96:13)
          mm-0     at SAXStream.emit (events.js:188:7)
          mm-0     at Object.me._parser.(anonymous function) [as onopentag] (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:258:17)
          mm-0     at emit (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:640:35)
          mm-0     at emitNode (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:645:5)
          mm-0     at openTag (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:841:5)
          mm-0     at Object.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:1404:13)
          mm-0     at SAXStream.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:239:18)
          mm-0     at yoshi.write (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:41:14)
          mm-0 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          mm-0 If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
          

          Note from admin: Please use Markdown on code snippets for easier reading!

          1 Reply Last reply Reply Quote 0
          • B Offline
            bobbob601
            last edited by

            http://www.heise.de/security/news/news-top-atom.xml
            => 404 error

            http://www.n-tv.de/rss
            => working fine on my config

            {
            			module: 'newsfeed',
            			position: 'bottom_bar',
            			config: {
            				feeds: [
            					{
            						title: "News",
            						url: "http://www.n-tv.de/rss"
            					}
            				],
            				showSourceTitle: true,
            				showPublishDate: true
            			}
            		}
            1 Reply Last reply Reply Quote 0
            • O Offline
              ostfilinchen
              last edited by

              oh thanks… heise produce the error… :-(

              1 Reply Last reply Reply Quote 0
              • B Offline
                bobbob601
                last edited by

                if the heise feed is broken on server side, it will not work :)

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy