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.

    MMM-Reddit "No valid posts to display"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 5 Posters 1.6k Views 5 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 Do not disturb
      sdetweil @kasperb
      last edited by sdetweil

      @kasperb said in MMM-Reddit "No valid posts to display":

      MMM-Reddit

      you are not the only one
      https://github.com/kjb085/MMM-Reddit/issues/39

      the code says it got a valid response
      with data,
      but not in the right format

                  if (response.statusCode === 200) {  // good
                      body = JSON.parse(body);
                      if (typeof body.data !== "undefined") {  // good
                          if (typeof body.data.children !== "undefined") { // oops..
      

      and then it sends the message you see

      my guess is the service changed, the author will have to fix (or some user that knows what to do )

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      W 1 Reply Last reply Reply Quote 0
      • W Offline
        Wenike @sdetweil
        last edited by

        @sdetweil Reddit has discontinued access to its API by Pushshift.io, so if this module uses that service, that would be the ultimate cause. But it could also just be that other changes made by the API requires the module to be updated.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Wenike
          last edited by

          @Wenike I have no idea just quickly looked at the error handling.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          mumblebajM 1 Reply Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @sdetweil
            last edited by

            @sdetweil I had a look and made some changes to the module and it is working. Created a PR but don’t know if the owner would accept as it has been 3 to 5 years since he last made any changes.

            Guys can use the below if they want:
            https://github.com/mumblebaj/MMM-Reddit

            Check out my modules at: https://github.com/mumblebaj?tab=repositories
            Check my blog-post: https://mumblebaj.xyz/

            S R K 3 Replies Last reply Reply Quote 3
            • S Do not disturb
              sdetweil @mumblebaj
              last edited by

              @mumblebaj you could link to your repo from the issue…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • R Offline
                robertybob @mumblebaj
                last edited by

                @mumblebaj Thanks very much for this!

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kasperb @mumblebaj
                  last edited by

                  @mumblebaj said in MMM-Reddit "No valid posts to display":

                  https://github.com/mumblebaj/MMM-Reddit

                  Thanks for looking into this and making the changes. How would I be able to use your version, do I need to switch to the new fork? Thanks

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @kasperb
                    last edited by

                    @kasperb you just git clone his fork, instead of the original ,

                    erase the original and then git clone his… nothing else changes

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 1 Reply Last reply Reply Quote 1
                    • K Offline
                      kasperb @sdetweil
                      last edited by

                      @sdetweil Thanks :-) I didn’t realize the link had changed. All working now!

                      Thanks, @mumblebaj for the fix!

                      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