[GH-ISSUE #189] New failed getting track metadata: invalid status code from track metadata: 500 or no supported formats #123

Closed
opened 2026-02-28 14:25:34 +03:00 by kerem · 20 comments
Owner

Originally created by @iVolt1 on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/189

Starting today, I am getting this error using the latest master:

time="2025-08-06T09:44:54-05:00" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2cPeYxoFd20SPP3VJxg02J: failed getting track metadata: invalid status code from track metadata: 500"

I can test master builds as needed.

I could not find the location of the complete log so could someone please share that?

Originally created by @iVolt1 on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/189 Starting today, I am getting this error using the latest master: time="2025-08-06T09:44:54-05:00" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2cPeYxoFd20SPP3VJxg02J: failed getting track metadata: invalid status code from track metadata: 500" I can test master builds as needed. I could not find the location of the complete log so could someone please share that?
kerem 2026-02-28 14:25:34 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@leodurandfr commented on GitHub (Aug 6, 2025):

Same error happened today.

Aug 06 17:02:23 milo milo-go-librespot[2808]: time="2025-08-06T17:02:23+02:00" level=info msg="accepted zeroconf from iPhone" username="p6*********************xy"
Aug 06 17:02:24 milo milo-go-librespot[2808]: time="2025-08-06T17:02:24+02:00" level=warning msg="original track has no formats, alternatives have a total of 0" uri="spotify:track:358o2ZNyG42fkynBA1jQ5K"
Aug 06 17:02:24 milo milo-go-librespot[2808]: time="2025-08-06T17:02:24+02:00" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:358o2ZNyG42fkynBA1jQ5K: no>
Aug 06 17:03:53 milo milo-go-librespot[2808]: time="2025-08-06T17:03:53+02:00" level=error msg="did not receive last pong from dealer, 60s passed"
Aug 06 17:04:23 milo milo-go-librespot[2808]: time="2025-08-06T17:04:23+02:00" level=error msg="did not receive last pong from dealer, 90s passed"
Aug 06 17:04:53 milo milo-go-librespot[2808]: time="2025-08-06T17:04:53+02:00" level=error msg="did not receive last pong from dealer, 120s passed"
<!-- gh-comment-id:3160648030 --> @leodurandfr commented on GitHub (Aug 6, 2025): Same error happened today. ``` Aug 06 17:02:23 milo milo-go-librespot[2808]: time="2025-08-06T17:02:23+02:00" level=info msg="accepted zeroconf from iPhone" username="p6*********************xy" Aug 06 17:02:24 milo milo-go-librespot[2808]: time="2025-08-06T17:02:24+02:00" level=warning msg="original track has no formats, alternatives have a total of 0" uri="spotify:track:358o2ZNyG42fkynBA1jQ5K" Aug 06 17:02:24 milo milo-go-librespot[2808]: time="2025-08-06T17:02:24+02:00" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:358o2ZNyG42fkynBA1jQ5K: no> Aug 06 17:03:53 milo milo-go-librespot[2808]: time="2025-08-06T17:03:53+02:00" level=error msg="did not receive last pong from dealer, 60s passed" Aug 06 17:04:23 milo milo-go-librespot[2808]: time="2025-08-06T17:04:23+02:00" level=error msg="did not receive last pong from dealer, 90s passed" Aug 06 17:04:53 milo milo-go-librespot[2808]: time="2025-08-06T17:04:53+02:00" level=error msg="did not receive last pong from dealer, 120s passed" ```
Author
Owner

@devgianlu commented on GitHub (Aug 6, 2025):

This issue has two sintoms: failed getting track metadata: invalid status code from track metadata: 500 and no supported formats.

It seems like Spotify either responds 500 or does not return the audio files when requesting the track metadata at /metadata/4/track/.... The official client still uses the same endpoint in the same way, so they clearly fingerprinting something.

Hopefully it's not something they have done on purpose to block us 😢

<!-- gh-comment-id:3160658629 --> @devgianlu commented on GitHub (Aug 6, 2025): This issue has two sintoms: `failed getting track metadata: invalid status code from track metadata: 500` and `no supported formats`. It seems like Spotify either responds 500 or does not return the audio files when requesting the track metadata at `/metadata/4/track/...`. The official client still uses the same endpoint in the same way, so they clearly fingerprinting something. Hopefully it's not something they have done on purpose to block us 😢
Author
Owner

@devgianlu commented on GitHub (Aug 6, 2025):

c980afb118 should fix it.

I think they messed something up, metadata requests must go through spclient.wg.spotify.com, but if you try to make "put state requests" with the same endpoint then it doesn't work. I have hardcoded it for metadata requests only.

<!-- gh-comment-id:3160813582 --> @devgianlu commented on GitHub (Aug 6, 2025): c980afb1181f382d2b5304aa45b85dc89958b13c should fix it. I think they messed something up, metadata requests must go through `spclient.wg.spotify.com`, but if you try to make "put state requests" with the same endpoint then it doesn't work. I have hardcoded it for metadata requests only.
Author
Owner

@devgianlu commented on GitHub (Aug 6, 2025):

I have released v0.3.2.

<!-- gh-comment-id:3160899405 --> @devgianlu commented on GitHub (Aug 6, 2025): I have released [v0.3.2](https://github.com/devgianlu/go-librespot/releases/tag/v0.3.2).
Author
Owner

@iVolt1 commented on GitHub (Aug 6, 2025):

That fixed it. Thanks for the quick fix.

I know you have been busy with a bunch of things, but speaking of metadata, is https://github.com/devgianlu/go-librespot/issues/157 "Add metadata output to a pipe as it is in librespot-java #157" making it its way up your todo list?

Thanks,

iVolt1

<!-- gh-comment-id:3160908165 --> @iVolt1 commented on GitHub (Aug 6, 2025): That fixed it. Thanks for the quick fix. I know you have been busy with a bunch of things, but speaking of metadata, is [https://github.com/devgianlu/go-librespot/issues/157](url) "Add metadata output to a pipe as it is in librespot-java #157" making it its way up your todo list? Thanks, iVolt1
Author
Owner

@devgianlu commented on GitHub (Aug 6, 2025):

I know you have been busy with a bunch of things, but speaking of metadata, is https://github.com/devgianlu/go-librespot/issues/157 "Add metadata output to a pipe as it is in librespot-java https://github.com/devgianlu/go-librespot/issues/157" making it its way up your todo list?

No, not really 😅

<!-- gh-comment-id:3161142801 --> @devgianlu commented on GitHub (Aug 6, 2025): >I know you have been busy with a bunch of things, but speaking of metadata, is [https://github.com/devgianlu/go-librespot/issues/157](https://github.com/devgianlu/go-librespot/issues/url) "Add metadata output to a pipe as it is in librespot-java https://github.com/devgianlu/go-librespot/issues/157" making it its way up your todo list? No, not really 😅
Author
Owner

@devgianlu commented on GitHub (Aug 7, 2025):

It broke again, I think I had found a bypass rather than a fix 😅

<!-- gh-comment-id:3164276395 --> @devgianlu commented on GitHub (Aug 7, 2025): It broke again, I think I had found a bypass rather than a fix 😅
Author
Owner

@leodurandfr commented on GitHub (Aug 7, 2025):

It's back again 🥲

Aug 07 15:46:34 milo milo-go-librespot[21807]: time="2025-08-07T15:46:34+02:00" level=info msg="skipping unplayable media: spotify:track:4Goj7amQLl2PiPYaiB0VlV" error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats"
Aug 07 15:46:34 milo milo-go-librespot[21807]: time="2025-08-07T15:46:34+02:00" level=warning msg="failed handling dealer request" error="failed skipping to next track: failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats"
Aug 07 15:46:36 milo milo-go-librespot[21807]: time="2025-08-07T15:46:36+02:00" level=warning msg="failed handling dealer request" error="failed skipping to next track: failed loading current track (advance to spotify:track:70VTTe96UJ9QUyFYbsnW5V): failed creating stream for spotify:track:70VTTe96UJ9QUyFYbsnW5V: failed getting track metadata: invalid status code from track metadata: 500"
<!-- gh-comment-id:3164282628 --> @leodurandfr commented on GitHub (Aug 7, 2025): It's back again 🥲 ``` Aug 07 15:46:34 milo milo-go-librespot[21807]: time="2025-08-07T15:46:34+02:00" level=info msg="skipping unplayable media: spotify:track:4Goj7amQLl2PiPYaiB0VlV" error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats" Aug 07 15:46:34 milo milo-go-librespot[21807]: time="2025-08-07T15:46:34+02:00" level=warning msg="failed handling dealer request" error="failed skipping to next track: failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats" Aug 07 15:46:36 milo milo-go-librespot[21807]: time="2025-08-07T15:46:36+02:00" level=warning msg="failed handling dealer request" error="failed skipping to next track: failed loading current track (advance to spotify:track:70VTTe96UJ9QUyFYbsnW5V): failed creating stream for spotify:track:70VTTe96UJ9QUyFYbsnW5V: failed getting track metadata: invalid status code from track metadata: 500" ```
Author
Owner

@devgianlu commented on GitHub (Aug 7, 2025):

Ok so they changed where the audio files come from, now the official client also gets empty lists and 500 responses.

<!-- gh-comment-id:3164311557 --> @devgianlu commented on GitHub (Aug 7, 2025): Ok so they changed where the audio files come from, now the official client also gets empty lists and 500 responses.
Author
Owner

@guidcruncher commented on GitHub (Aug 7, 2025):

Maybe unrelated but i was playing around with Sample rates to get a bitperfect playback configuration, I configured my card to use S24_3LE and consistently started to get this area above:

error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats"

I then noticed that go-librespot didnt seem to suppport that sample rate and I reverted both back to S16 (Default) with a bitrate of 96000

Other apps were fine with S24_3LE - such as MPD.

<!-- gh-comment-id:3164325414 --> @guidcruncher commented on GitHub (Aug 7, 2025): Maybe unrelated but i was playing around with Sample rates to get a bitperfect playback configuration, I configured my card to use S24_3LE and consistently started to get this area above: error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats" I then noticed that go-librespot didnt seem to suppport that sample rate and I reverted both back to S16 (Default) with a bitrate of 96000 Other apps were fine with S24_3LE - such as MPD.
Author
Owner

@devgianlu commented on GitHub (Aug 7, 2025):

Maybe unrelated but i was playing around with Sample rates to get a bitperfect playback configuration, I configured my card to use S24_3LE and consistently started to get this area above:

error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats"

I then noticed that go-librespot didnt seem to suppport that sample rate and I reverted both back to S16 (Default) with a bitrate of 96000

Other apps were fine with S24_3LE - such as MPD.

This is unrelated to your changes, it is broken for everyone.

<!-- gh-comment-id:3164332819 --> @devgianlu commented on GitHub (Aug 7, 2025): > Maybe unrelated but i was playing around with Sample rates to get a bitperfect playback configuration, I configured my card to use S24_3LE and consistently started to get this area above: > > error="failed creating stream for spotify:track:4Goj7amQLl2PiPYaiB0VlV: no supported formats" > > I then noticed that go-librespot didnt seem to suppport that sample rate and I reverted both back to S16 (Default) with a bitrate of 96000 > > Other apps were fine with S24_3LE - such as MPD. This is unrelated to your changes, it is broken for everyone.
Author
Owner

@devgianlu commented on GitHub (Aug 7, 2025):

And now it works again :/

<!-- gh-comment-id:3164361017 --> @devgianlu commented on GitHub (Aug 7, 2025): And now it works again :/
Author
Owner

@dviel commented on GitHub (Aug 8, 2025):

Image Looks still broken :/
<!-- gh-comment-id:3167085436 --> @dviel commented on GitHub (Aug 8, 2025): <img width="923" height="60" alt="Image" src="https://github.com/user-attachments/assets/8616b4f1-e2dd-4100-b751-ddb1b8a3de62" /> Looks still broken :/
Author
Owner

@devgianlu commented on GitHub (Aug 9, 2025):

Image Looks still broken :/

@dviel That isn't the go-librespot daemon though 🤔

<!-- gh-comment-id:3170587881 --> @devgianlu commented on GitHub (Aug 9, 2025): > <img alt="Image" width="923" height="60" src="https://private-user-images.githubusercontent.com/359615/475942280-8616b4f1-e2dd-4100-b751-ddb1b8a3de62.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ3MzYyNzQsIm5iZiI6MTc1NDczNTk3NCwicGF0aCI6Ii8zNTk2MTUvNDc1OTQyMjgwLTg2MTZiNGYxLWUyZGQtNDEwMC1iNzUxLWRkYjFiOGEzZGU2Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwOVQxMDM5MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iOGY4NGUwMDFiMDk0OWE0NmM3YzZhMjkxNDYwOWRiMGFiYTA4MWY4MDg1OGM2ZTEzMDY0ZDc5ZmQ1NmJiZmU1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EFZ_gsLG7G374Q_GlFjwfOgZYRVDplh55vxMZ_mLggo"> Looks still broken :/ @dviel That isn't the go-librespot daemon though 🤔
Author
Owner

@shaylavi commented on GitHub (Aug 9, 2025):

add the following to /etc/hosts
0.0.0.0 apresolve.spotify.com
restart your device and try again
worked for me

<!-- gh-comment-id:3170634748 --> @shaylavi commented on GitHub (Aug 9, 2025): add the following to /etc/hosts 0.0.0.0 apresolve.spotify.com restart your device and try again worked for me
Author
Owner

@devgianlu commented on GitHub (Aug 9, 2025):

Following a brief discussion with a fellow developer (https://github.com/librespot-org/librespot/discussions/1529#discussioncomment-14056825), I have deprecated the /metadata/4/ API in favor of /extended-metadata/v0/ one.

I am going to close this, let's hope I don't have to reopen it 😄

<!-- gh-comment-id:3171778899 --> @devgianlu commented on GitHub (Aug 9, 2025): Following a brief discussion with a fellow developer (https://github.com/librespot-org/librespot/discussions/1529#discussioncomment-14056825), I have deprecated the `/metadata/4/` API in favor of `/extended-metadata/v0/` one. I am going to close this, let's hope I don't have to reopen it 😄
Author
Owner

@leodurandfr commented on GitHub (Aug 26, 2025):

It looks like it is back again (on v0.3.3) :/

Aug 26 13:50:10 milo milo-go-librespot[1996]: time="2025-08-26T13:50:10+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: inv>

EDIT : And now working again 😬

<!-- gh-comment-id:3223860957 --> @leodurandfr commented on GitHub (Aug 26, 2025): It looks like it is back again (on v0.3.3) :/ ``` Aug 26 13:50:10 milo milo-go-librespot[1996]: time="2025-08-26T13:50:10+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: inv> ``` EDIT : And now working again 😬
Author
Owner

@devgianlu commented on GitHub (Aug 26, 2025):

It looks like it is back again (on v0.3.3) :/

Aug 26 13:50:10 milo milo-go-librespot[1996]: time="2025-08-26T13:50:10+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: inv>

EDIT : And now working again 😬

The error is truncated so I can't really tell what was the error. BTW, where did you click to get a spotify:prerelease: URI?

<!-- gh-comment-id:3225242590 --> @devgianlu commented on GitHub (Aug 26, 2025): > It looks like it is back again (on v0.3.3) :/ > > ``` > Aug 26 13:50:10 milo milo-go-librespot[1996]: time="2025-08-26T13:50:10+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: inv> > ``` > > EDIT : And now working again 😬 The error is truncated so I can't really tell what was the error. BTW, where did you click to get a `spotify:prerelease:` URI?
Author
Owner

@leodurandfr commented on GitHub (Aug 27, 2025):

@devgianlu Sorry for the uncomplete error...

I found a way to find it back but still uncomplete...

Aug 26 11:52:25 milo milo-go-librespot[23045]: time="2025-08-26T11:52:25+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: invalid status code from context resol>

About the "prerelease", I can not reproduce but it was while listening tracks from this album "https://open.spotify.com/prerelease/44NUCfRiQjTzKhFs67cf4X" which is partially released.

<!-- gh-comment-id:3227228709 --> @leodurandfr commented on GitHub (Aug 27, 2025): @devgianlu Sorry for the uncomplete error... I found a way to find it back but still uncomplete... ``` Aug 26 11:52:25 milo milo-go-librespot[23045]: time="2025-08-26T11:52:25+02:00" level=warning msg="failed handling dealer request" error="failed creating track list: failed initializing context resolver: failed resolving context spotify:prerelease:44NUCfRiQjTzKhFs67cf4X: invalid status code from context resol> ``` About the "prerelease", I can not reproduce but it was while listening tracks from this album "https://open.spotify.com/prerelease/44NUCfRiQjTzKhFs67cf4X" which is partially released.
Author
Owner

@devgianlu commented on GitHub (Aug 30, 2025):

@Leshauts It's not a prerelase anymore sadly, will have to find another one

<!-- gh-comment-id:3239305124 --> @devgianlu commented on GitHub (Aug 30, 2025): @Leshauts It's not a prerelase anymore sadly, will have to find another one
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/go-librespot#123
No description provided.