Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 Client Error: Unauthorized for url: #111

Closed
ghost opened this issue Aug 8, 2022 · 4 comments
Closed

401 Client Error: Unauthorized for url: #111

ghost opened this issue Aug 8, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 8, 2022

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?

@morguldir
Copy link
Collaborator

morguldir commented Aug 13, 2022

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 #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

@ghost
Copy link
Author

ghost commented Aug 15, 2022

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

@TinkeringTony
Copy link

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.

@morguldir
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants