Read the statement by Michael Teeuw here.
MMM-Reddit "No valid posts to display"
-
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. -
@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 -
@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/39the code says it got a valid response
with data,
but not in the right formatif (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 )
-
@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.
-
@Wenike I have no idea just quickly looked at the error handling.
-
@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 -
@mumblebaj you could link to your repo from the issue…
-
@mumblebaj Thanks very much for this!
-
@mumblebaj said in MMM-Reddit "No valid posts to display":
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
-
@kasperb you just git clone his fork, instead of the original ,
erase the original and then git clone his… nothing else changes
-
@sdetweil Thanks :-) I didn’t realize the link had changed. All working now!
Thanks, @mumblebaj for the fix!