[GH-ISSUE #208] current_user_playing_track return 401 #68

Closed
opened 2026-02-27 20:22:55 +03:00 by kerem · 1 comment
Owner

Originally created by @luukvankooten on GitHub (May 2, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/208

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

Originally created by @luukvankooten on GitHub (May 2, 2021). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/208 **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`
kerem 2026-02-27 20:22:55 +03:00
Author
Owner

@luukvankooten commented on GitHub (May 2, 2021):

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

<!-- gh-comment-id:830869912 --> @luukvankooten commented on GitHub (May 2, 2021): I also created a pull request for this fix, see #209.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#68
No description provided.