python-tidal icon indicating copy to clipboard operation
python-tidal copied to clipboard

401 Client Error: Unauthorized for url:

Open LJAM96 opened this issue 2 years ago • 2 comments

Im utilising a integration of tidalapi 0.7.0rc1 with a fork of ultrasonics (Steve-Tech/ultrasonics) and on attempting to utilise the tidalapi I get the error

tidal - ERROR - 401 Client Error: Unauthorized for url: https://api.tidal.com/v1/sessions?limit=1000

I'm unaware if this is an issue with the integration or tidalapi, the URL seems to suggest the API keys are over utilised?

LJAM96 avatar Aug 08 '22 05:08 LJAM96

This part isn't correct anymore https://github.com/Steve-Tech/ultrasonics/blob/750c2bb0a928eb680913ef238e79422a1a2fb3c9/ultrasonics/official_plugins/up_tidal.py#L98, it was changed in https://github.com/tamland/python-tidal/pull/73

Also note that you need to check the return status of the load_oauth_session, there's no point in continuing if the session wasn't loaded, generally I would suggest doing the login again if it fails

morguldir avatar Aug 13 '22 18:08 morguldir

Ah thank you, thats great! Apologies, based on the URL I thought initially it would be an API being over utilised and not the program using it

ghost avatar Aug 15 '22 11:08 ghost

Im utilising a integration of tidalapi 0.7.0rc1 with a fork of ultrasonics (Steve-Tech/ultrasonics) and on attempting to utilise the tidalapi I get the error

tidal - ERROR - 401 Client Error: Unauthorized for url: https://api.tidal.com/v1/sessions?limit=1000

I'm unaware if this is an issue with the integration or tidalapi, the URL seems to suggest the API keys are over utilised?

Were you able to get it working? I'm running into the same problem and very new to python/api's.

TinkeringTony avatar Aug 27 '22 13:08 TinkeringTony

https://github.com/XDGFX/ultrasonics/pull/45#issuecomment-1242640666

morguldir avatar Sep 10 '22 17:09 morguldir