kjb085 / MMM-Reddit

Magic Mirror Module for displaying top level content from reddit
34 stars 7 forks source link

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

Open Extenuate0083 opened 1 year ago

Extenuate0083 commented 1 year ago

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

cACyvRD

sdetweil commented 1 year ago

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

Extenuate0083 commented 1 year ago

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!

sdetweil commented 1 year ago

module needs an update

mumblebaj commented 1 year ago

see fork that works Working Fork

Extenuate0083 commented 1 year ago

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

mumblebaj commented 1 year ago

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

Extenuate0083 commented 1 year ago

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

mumblebaj commented 1 year ago

glad it works

DillonBrown commented 1 year ago

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