tehkillerbee/mopidy-tidal

Unauthorized?

Closed this issue · 5 comments

This morning I had this error, and can't load any Tidal playlist anymore...

2024-05-10 08:30:00,082 INFO [641:TidalBackend-3 (_actor_loop)] tidalapi.session: Loading session from /var/lib/mopidy/tidal/tidal-oauth.json...
2024-05-10 08:30:00,797 WARNING [641:TidalBackend-3 (_actor_loop)] tidalapi.request: HTTP error on 401
2024-05-10 08:30:00,798 INFO [641:TidalBackend-3 (_actor_loop)] tidalapi.request: Got exception 401 Client Error: Unauthorized for url: https://
api.tidal.com/v1/sessions?limit=1000

What does it mean?

It just looks like your authentication has failed.

Have you tried reauthentication with PKCE auth to see if it works?

Until yesterday it worked. Should I have to delete the auth json file again? I am using oauth

Yes. After deleting the oauth.json file it worked back again.

Any chance to avoid this random disconnects?

I have never experienced this problem myself, sorry so I doubt it's a tidalapi issue. But perhaps tidal has changed their way that irregular behaviour is detected, resulting in your account requiring reauth.

One fix could be to trigger reauth automatically, when this issue occurs. But not something I see necessary to add, unless this issue becomes more frequent.