mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #941] Error in new-api branch when trying to get token #458
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#458
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AbhayAysola on GitHub (Jan 22, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/941
Originally assigned to: @roderickvd on GitHub.
I ran the get_token example which throws this error -
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Unavailable, error: Response(MercuryResponse { uri: "hm://keymaster/token/authenticated?scope=streaming,user-read-playback-state,user-modify-playback-state,user-read-currently-playing&client_id=&device_id=b05ae3c8-5494-4496-a3ed-61f49d0c6921", status_code: 400, payload: [[123, 34, 99, 111, 100, 101, 34, 58, 50, 125]] }) }', examples\get_token.rs:25:62 stack backtrace:@roderickvd commented on GitHub (Jan 22, 2022):
I see the
client_idis empty. You are running the example as-is or have you got your own code? If it’s as-is I’ll see about fixing the example.@AbhayAysola commented on GitHub (Jan 22, 2022):
Yeah that's what I observed as well. After a little bit of digging it seems like the
client_idisn't properly initialized inSession::new.I'm running the example code as-is.
@roderickvd commented on GitHub (Jan 22, 2022):
This should be fixed in
0822af0.