mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1511] Failed to create Spirc instance: Error { kind: InvalidArgument, error: StatusCode(400) } #682
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#682
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 @thedtvn on GitHub (Jun 17, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1511
There are no docs orexamplese for this, soIi created this issue
Here is my code I use lib ver 0.6.0-dev full direct from github
@photovoltex commented on GitHub (Jun 17, 2025):
I will take a look later at your provided example. Just a thing that seems off about you async code. You spawn a new thread, but don't await the handle, meaning the thread will not be executed (if I'm correct?). Couldn't you remove the
tokio::spawnand just run the spirc task on the current thread? I might be wrong but maybe that all it is.@thedtvn commented on GitHub (Jun 17, 2025):
thanks
@thedtvn commented on GitHub (Jun 17, 2025):
@photovoltex , can I ask what I do wrong that makes it send a 400 error (I try to connect using Spotify client connect to this app )
@photovoltex commented on GitHub (Jun 17, 2025):
I tried your provided code and connect to the connect device via the desktop player, which seemed to work. Please provide a log with your error, otherwise we can't help you with your problem.
@thedtvn commented on GitHub (Jun 17, 2025):
i fixed that thanks for sory about wasted your times