[GH-ISSUE #279] Audio Key Error:Failed retrieving aes key #168

Open
opened 2026-02-28 14:25:57 +03:00 by kerem · 3 comments
Owner

Originally created by @YutongGu on GitHub (Dec 30, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/279

Using the latest version of go-librespot, I’m running into an issue where the go-librespot instance is unable to play any tracks. Below are the logs.

time="2025-12-30T16:06:51Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T16:06:51Z" level=info msg="authenticated Login5" username="31************************mm"
time="2025-12-30T16:06:52Z" level=info msg="accepted zeroconf from iPhone" username="31************************mm"
time="2025-12-30T16:06:54Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2gvubmOF7YxvMLwMz4FQUg: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T16:06:54Z" level=info msg="playback was transferred to <unknown>"
time="2025-12-30T16:07:15Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T16:07:15Z" level=info msg="authenticated Login5" username="31************************mm"
Rate limited 1 logs
time="2025-12-30T16:07:16Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2gvubmOF7YxvMLwMz4FQUg: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T16:07:18Z" level=warning msg="failed handling dealer request" error="no primary stream"
time="2025-12-30T16:07:58Z" level=warning msg="failed handling dealer request" error="failed loading current track (skip prev): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T16:08:03Z" level=info msg="playback was transferred to <unknown>"
time="2025-12-30T19:20:22Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T19:20:22Z" level=info msg="authenticated Login5" username="31************************mm"
time="2025-12-30T19:20:22Z" level=info msg="accepted zeroconf from iPhone" username="31************************mm"
time="2025-12-30T19:20:23Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T19:20:25Z" level=warning msg="failed handling dealer request" error="no primary stream"
time="2025-12-30T19:21:13Z" level=info msg="playback was transferred to <unknown>"
time="2025-12-30T19:21:22Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T19:21:22Z" level=info msg="authenticated Login5" username="31************************mm"
Rate limited 1 logs
time="2025-12-30T19:21:23Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T19:21:44Z" level=warning msg="failed handling dealer request" error="no primary stream"
time="2025-12-30T19:21:46Z" level=info msg="playback was transferred to iPhone"
time="2025-12-30T19:22:47Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T19:22:48Z" level=info msg="authenticated Login5" username="31************************mm"
Rate limited 1 logs
time="2025-12-30T19:22:49Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T19:23:12Z" level=info msg="playback was transferred to iPhone"
time="2025-12-30T19:24:01Z" level=info msg="authenticated AP" username="31************************mm"
time="2025-12-30T19:24:01Z" level=info msg="authenticated Login5" username="31************************mm"
Rate limited 1 logs
time="2025-12-30T19:24:03Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1"
time="2025-12-30T19:24:13Z" level=warning msg="failed handling dealer request" error="no primary stream"
time="2025-12-30T19:24:22Z" level=info msg="playback was transferred to iPhone"

This seems to be account-specific so troubleshooting may be difficult and is the same issue as reported in librespot.
https://github.com/librespot-org/librespot/issues/1649

Originally created by @YutongGu on GitHub (Dec 30, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/279 Using the latest version of go-librespot, I’m running into an issue where the go-librespot instance is unable to play any tracks. Below are the logs. ``` time="2025-12-30T16:06:51Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T16:06:51Z" level=info msg="authenticated Login5" username="31************************mm" time="2025-12-30T16:06:52Z" level=info msg="accepted zeroconf from iPhone" username="31************************mm" time="2025-12-30T16:06:54Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2gvubmOF7YxvMLwMz4FQUg: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T16:06:54Z" level=info msg="playback was transferred to <unknown>" time="2025-12-30T16:07:15Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T16:07:15Z" level=info msg="authenticated Login5" username="31************************mm" Rate limited 1 logs time="2025-12-30T16:07:16Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2gvubmOF7YxvMLwMz4FQUg: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T16:07:18Z" level=warning msg="failed handling dealer request" error="no primary stream" time="2025-12-30T16:07:58Z" level=warning msg="failed handling dealer request" error="failed loading current track (skip prev): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T16:08:03Z" level=info msg="playback was transferred to <unknown>" time="2025-12-30T19:20:22Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T19:20:22Z" level=info msg="authenticated Login5" username="31************************mm" time="2025-12-30T19:20:22Z" level=info msg="accepted zeroconf from iPhone" username="31************************mm" time="2025-12-30T19:20:23Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T19:20:25Z" level=warning msg="failed handling dealer request" error="no primary stream" time="2025-12-30T19:21:13Z" level=info msg="playback was transferred to <unknown>" time="2025-12-30T19:21:22Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T19:21:22Z" level=info msg="authenticated Login5" username="31************************mm" Rate limited 1 logs time="2025-12-30T19:21:23Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T19:21:44Z" level=warning msg="failed handling dealer request" error="no primary stream" time="2025-12-30T19:21:46Z" level=info msg="playback was transferred to iPhone" time="2025-12-30T19:22:47Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T19:22:48Z" level=info msg="authenticated Login5" username="31************************mm" Rate limited 1 logs time="2025-12-30T19:22:49Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T19:23:12Z" level=info msg="playback was transferred to iPhone" time="2025-12-30T19:24:01Z" level=info msg="authenticated AP" username="31************************mm" time="2025-12-30T19:24:01Z" level=info msg="authenticated Login5" username="31************************mm" Rate limited 1 logs time="2025-12-30T19:24:03Z" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:2PtLkaWhgELK7PoW1X9XwL: failed retrieving audio key: failed retrieving aes key with code 1" time="2025-12-30T19:24:13Z" level=warning msg="failed handling dealer request" error="no primary stream" time="2025-12-30T19:24:22Z" level=info msg="playback was transferred to iPhone" ``` This seems to be account-specific so troubleshooting may be difficult and is the same issue as reported in librespot. https://github.com/librespot-org/librespot/issues/1649
Author
Owner

@devgianlu commented on GitHub (Jan 1, 2026):

I cannot reproduce this issue, as you pointed out and in the librespot thread. I assume you have a Premium account.

Do you have the same problem running librespot? Can you confirm what exact version of go-librespot you are running?

<!-- gh-comment-id:3703985979 --> @devgianlu commented on GitHub (Jan 1, 2026): I cannot reproduce this issue, as you pointed out and in the librespot thread. I assume you have a Premium account. Do you have the same problem running librespot? Can you confirm what exact version of go-librespot you are running?
Author
Owner

@YutongGu commented on GitHub (Jan 5, 2026):

I was afraid that might be the case. I was testing with commit 63920cf. Until they roll this change out to more accounts, it may be difficult to make much progress on a fix. It seems related to them forcing certain users to using their PlayPlay DRM.

<!-- gh-comment-id:3708730330 --> @YutongGu commented on GitHub (Jan 5, 2026): I was afraid that might be the case. I was testing with commit 63920cf. Until they roll this change out to more accounts, it may be difficult to make much progress on a fix. It seems related to them forcing certain users to using their PlayPlay DRM.
Author
Owner

@devgianlu commented on GitHub (Jan 23, 2026):

I'd like to report that is an issue out of our control most likely, see the discussion in https://github.com/librespot-org/librespot/issues/1649 and on Spotify's community.

<!-- gh-comment-id:3792110566 --> @devgianlu commented on GitHub (Jan 23, 2026): I'd like to report that is an issue out of our control most likely, see the discussion in https://github.com/librespot-org/librespot/issues/1649 and [on Spotify's community](https://community.spotify.com/t5/Other-Podcasts-Partners-etc/Spotify-Connect-not-working-on-certain-accounts/m-p/7282161).
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#168
No description provided.