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

current_user_playing_track return 401 #208

Closed
luukvankooten opened this issue May 2, 2021 · 1 comment
Closed

current_user_playing_track return 401 #208

luukvankooten opened this issue May 2, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@luukvankooten
Copy link

Describe the bug
the method in the spotify client current_user_playing_track return Err( StatusCode(401, "Unauthorized", ),)

To Reproduce
Steps to reproduce the behavior:

  1. Build oauth
  2. Build spotify
  3. Add or set the scope to user-read-currently-playing
  4. prompt user for token.
  5. call the method current_user_playing_track

Expected behavior
An struct of CurrentlyPlayingContext

Log/Output data

Err(
    StatusCode(
        401,
        "Unauthorized",
    ),
)

Additional context
To solve the problem in the method current_user_playing_track change self.get to self.endpoint_get

@luukvankooten luukvankooten added bug Something isn't working help wanted Extra attention is needed labels May 2, 2021
@luukvankooten
Copy link
Author

I also created a pull request for this fix, see #209.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants