• 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.

MMM-Reddit "No valid posts to display"

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 5 Posters 1.0k 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.
  • K Offline
    kasperb
    last edited by May 5, 2023, 2:54 PM

    Hi All - out of the blue, my MMM-Reddit module is displaying the following error:

    No valid posts to display
    Check the console for a full description of error.

    Note that I can’t find any error in the logs, nor did I make any changes to the module.
    Could this be an outdated backend dependency or certificate? Any help troubleshooting this issue is appreciated.

    S 1 Reply Last reply May 5, 2023, 3:32 PM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @sdetweil
      last edited by May 6, 2023, 2:31 PM

      @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

      S R K 3 Replies Last reply May 6, 2023, 4:01 PM Reply Quote 3
      • S Offline
        sdetweil @kasperb
        last edited by sdetweil May 5, 2023, 3:36 PM May 5, 2023, 3:32 PM

        @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 May 5, 2023, 11:52 PM Reply Quote 0
        • W Offline
          Wenike @sdetweil
          last edited by May 5, 2023, 11:52 PM

          @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 May 6, 2023, 12:12 AM Reply Quote 0
          • S Offline
            sdetweil @Wenike
            last edited by May 6, 2023, 12:12 AM

            @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

            M 1 Reply Last reply May 6, 2023, 2:31 PM Reply Quote 0
            • M Offline
              mumblebaj Module Developer @sdetweil
              last edited by May 6, 2023, 2:31 PM

              @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

              S R K 3 Replies Last reply May 6, 2023, 4:01 PM Reply Quote 3
              • S Offline
                sdetweil @mumblebaj
                last edited by May 6, 2023, 4:01 PM

                @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 May 7, 2023, 9:01 AM

                  @mumblebaj Thanks very much for this!

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kasperb @mumblebaj
                    last edited by May 8, 2023, 12:23 PM

                    @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 May 8, 2023, 1:42 PM Reply Quote 0
                    • S Offline
                      sdetweil @kasperb
                      last edited by May 8, 2023, 1:42 PM

                      @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 May 8, 2023, 3:56 PM Reply Quote 1
                      • K Offline
                        kasperb @sdetweil
                        last edited by May 8, 2023, 3:56 PM

                        @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
                        1 / 1
                        • First post
                          2/10
                          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