Fabrizz / MMM-OnSpotify

Highly customizable MM2 module that displays what you are listening to in Spotify. Compatible with MMM-LiveLyrics and DynamicTheming.
MIT License
64 stars 10 forks source link

Cannot authenticate with spotify #78

Open gnisch opened 1 month ago

gnisch commented 1 month ago

I've created app on spotify dev, exactly as described (I was using other module to spotify and it worked). But when I click authorize I've get INVALID_TOKEN in response after allowing app to connect, second try to authorize just throws error. My magic mirror is in docker environment if that means something.

Fabrizz commented 1 month ago

Hi, Are you using the same token as the other module? You need to reauthenticate as the API scopes are probably different, even if it worked on the other module

gnisch commented 1 month ago

Of course that I'm using new app. The error shows when I click on spotify authorize green button, it redirects me to auth app, but without authorization and refresh tokens. From this point I can only delete spotify app and start from scratch, but it again fails.

pt., 20 wrz 2024 o 00:30 Fabrizio @.***> napisał(a):

Hi, Are you using the same token as the other module? You need to reauthenticate as the API scopes are probably different, even if it worked on the other module

— Reply to this email directly, view it on GitHub https://github.com/Fabrizz/MMM-OnSpotify/issues/78#issuecomment-2362312073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOME4MXSWHHUVSOCE223A3LZXNGBXAVCNFSM6AAAAABOQ3DUWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGMYTEMBXGM . You are receiving this because you authored the thread.Message ID: @.***>

Fabrizz commented 1 month ago

Thats strange, I just did it with an old app and it right away just worked, do you have the correct redirect? Given that you are in docker what Ip/hostname are you using to access the auth service? That auth service is completely independent of the module, if you want you can just clone it and use it elsewhere

gnisch commented 1 month ago

I changed computer from witch I'm doing authorization and for my great surprise it authorized from first try. My only issue now is that it works only after restart of magic mirror container, after first refresh, next reload of magic mirror and module is trying to connect to spotify, i've set intervals like in github example.

EDIT: It apears like this issue: https://github.com/Fabrizz/MMM-OnSpotify/issues/71 I've downgraded module to v4 but it also stucks in connect to spotify.

pt., 20 wrz 2024 o 00:47 Fabrizio @.***> napisał(a):

Thats strange, I just did it with an old app and it right away just worked, do you have the correct redirect?

— Reply to this email directly, view it on GitHub https://github.com/Fabrizz/MMM-OnSpotify/issues/78#issuecomment-2362330579, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOME4MWHUV3XP2GDMUFO6CDZXNIBDAVCNFSM6AAAAABOQ3DUWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGMZTANJXHE . You are receiving this because you authored the thread.Message ID: @.***>

Fabrizz commented 1 month ago

Its really strange as for a couple couple of users it just endlessly times out. What other modules do you have installed?

idanso commented 3 weeks ago

i think i have the same issue, is ther any solution? after auth with spotify im gettign this error:


Step 2: Something went wrong! Did you give permission to the app? If not you will not be able to use this module with your MagicMirror unless you authorize the app. (Click this red card to restart the tool)