MMM-Reddit icon indicating copy to clipboard operation
MMM-Reddit copied to clipboard

News feed doesn't load since last week even after a reboot.

Open Extenuate0083 opened this issue 1 year ago • 9 comments

News feed doesn't load since last week even after a reboot. I have a "No valid post to display..." Message.

cACyvRD

Extenuate0083 avatar May 05 '23 00:05 Extenuate0083

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

sdetweil avatar May 05 '23 15:05 sdetweil

I'm an absolute noob in linux and I don't exactly know what this means. Can I fix it on my side or does the module need an update?

Thanks!

Extenuate0083 avatar May 05 '23 16:05 Extenuate0083

module needs an update

sdetweil avatar May 05 '23 16:05 sdetweil

see fork that works Working Fork

mumblebaj avatar May 06 '23 16:05 mumblebaj

Fantastic! How can I do that? I'm an absolute noob in linux.

Extenuate0083 avatar May 06 '23 16:05 Extenuate0083

you would typically rename the existing module folder and then clone the module from the link I provided above. the exact same config should still work

mumblebaj avatar May 06 '23 19:05 mumblebaj

Omg It worked! I have my Reddit News back! Thank you so much mumblebaj!

Extenuate0083 avatar May 08 '23 14:05 Extenuate0083

glad it works

mumblebaj avatar May 08 '23 14:05 mumblebaj

@mumblebaj can confirm this works for me as well. Thank you! @kjb085 I would recommend merging this in as a fix to your active repo.

DillonBrown avatar May 22 '23 13:05 DillonBrown