• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Getting warning in development view in my module MMM-RadioDe + Error Message + other questions

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 1.4k 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.
  • S Offline
    Steff
    last edited by Steff Feb 13, 2017, 8:39 PM Feb 13, 2017, 8:38 PM

    Hi all, since @Disturbx (Forum Link MMM-RadioDe) wrote that “my” MMM-RadioDe module does not operate on his mirror but in browser view, I started some more debugging by starting the MMM with npm start dev and I can see some warnings/ error messages I do not understand:

    pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details.
    VM108 vendor.js:9 Error: Blocked a frame with origin "http://www.radio.de" from accessing a cross-origin frame.
        at Error (native)
        at http://www.radio.de/inc/microsite/js/app.js:2:5158
        at http://www.radio.de/inc/microsite/js/vendor.js:9:25272
        at o (http://www.radio.de/inc/microsite/js/vendor.js:8:4062)
        at http://www.radio.de/inc/microsite/js/vendor.js:8:6140(anonymous function) @ VM108 vendor.js:9(anonymous function) @ VM108 vendor.js:8(anonymous function) @ VM108 vendor.js:9o @ VM108 vendor.js:8(anonymous function) @ VM108 vendor.js:8
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Trying%20to%20connect...&s…9h5&reconnect=0&waittime=0&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Stream%20started%20to%20pl…&reconnect=0&waittime=1002&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…reconnect=0&waittime=60751&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…econnect=0&waittime=120991&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…econnect=0&waittime=180995&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    

    I do not understand the warning translateSanitization. Did anyone of encounter a similar warning in his module development and could point me in the correct direction ?

    From the other error messages I do get the impression, that my invocation of the web radio player tries to open a frame, but I am not sure… Any hints appreciated.

    Furthermore I thought about to start the webradio player only once after all modules are started:

    Set a variable this.all_started to after ALL_MODULES_STARTED and start radio only once this is successful. Do you think this would be a good way ?

        notificationReceived: function (notification, payload, sender) {
          if(notification === "ALL_MODULES_STARTED"){
            this.all_started = true;
            Log.info("Received notification ALL_MODULES_STARTED setting all_started to  : " + this.all_started);
          }else if(notification === "RADIO_STATION"){
            Log.info("Received RADIO_STATION" + payload.title + "   "+ payload.type);
            this.config.station = payload.title;
            this.updateDom(300);
          }
        },
    
        getDom: function() {
          var wrapper = document.createElement("div");
          if (this.display && this.all_started) {
    
            var script = document.createElement("div");
            script.innerHTML = "<div></div>
    S 1 Reply Last reply Feb 13, 2017, 9:01 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @Steff
      last edited by Feb 13, 2017, 9:01 PM

      @Steff the translate module which reports an issue is an angular module of pascal precht, but it works even though you didn’t specify a sanitization strategy.

      Your problem are the requests which get an 403 forbidden http status

      Please create a github issue if you need help, so I can keep track

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        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