Kiina / MMM-trakt

A MagicMirror Module to show your upcoming tv shows from trakt.tv
MIT License
14 stars 2 forks source link

Please enter the following #5

Closed davidvidmar closed 6 years ago

davidvidmar commented 6 years ago

I just started playing with MM and wanted to include MMM-trakt into my config. Install was super easy and I can see the module loading, but I alway get "Please neter the following..." with undefined as a code.

I tried generating a new app, triple check that my API keys are correct, but no luck. Any ideas what should I check?

Regards, D

Kiina commented 6 years ago

Try to remove the token.json in the MMM-trakt folder and try again, you should get a new token then. If not report again so I can look deeper into it. I will add some better checks for this problem in a future release.

davidvidmar commented 6 years ago

Hi, sounds like a plan, except I don't (yet) have a token.json file.

[image: image.png]

On Mon, Mar 19, 2018 at 10:42 AM Kiina notifications@github.com wrote:

Try to remove the token.json in the MMM-trakt folder and try again, you should get a new token then. If not report again so I can look deeper into it. I will add some better checks for this problem in a future release.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kiina/MMM-trakt/issues/5#issuecomment-374153751, or mute the thread https://github.com/notifications/unsubscribe-auth/AAImvKZT2ZSeFug-ORf2YlbOJBRvQfZCks5tf32CgaJpZM4SvccQ .

-- LP, David https://vidmar.net

Kiina commented 6 years ago

Sorry for the late answer. Well either your mirror has no Internet connection or for some reason has trouble talking to the trakt api. I have added a small logging feature, can you pull the latest version and send me the complete console output from the mirror (you can omit stuff like your api keys and let it run for a short while so we have all the logs). Make sure you have no token.json in the MMM-trakt folder. The logs should tell whats wrong (I hope)

davidvidmar commented 6 years ago

Thanks for getting back to me. I pulled last version, rechecked if I have a token.json (I don't) and hopped to see what is wrong in log, but there are no logs.

I started looking around the code, adding bunch of console.logs and from what I can see, the importoldtoken().catch happens (no token.json, so figures), but then I see TypeError in logs when trakt.get_codes() is called.

I can see that config picks up corrent codes from config.

Any idea what to check next?

Kiina commented 6 years ago

Ah the problem seems to be with the electron downgrade in MagicMirror v2.2.0. You can switch to the development channel or install a newer electron version with npm install electron@1.6.17 or npm install electron@1.7.10. Looks like this issue will be resolved in a few days with 2.3.0 anyway:

https://github.com/MichMich/MagicMirror/commit/8d0e453666b7416ef34cfaac7ba761439e8bf1e1

Kiina commented 6 years ago

Well works with MM 2.4 and up now, so I guess it shouldn't be an issue anymore