[GH-ISSUE #283] failed creating new session #171

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

Originally created by @2opremio on GitHub (Jan 15, 2026).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/283

This happens when trying to transfer a session from my phone:

Jan 15 08:36:28 duchamp go-librespot[1226]: time="2026-01-15T08:36:28Z" level=debug msg="obtained new client token: [redacted]"
Jan 15 08:36:28 duchamp go-librespot[1226]: time="2026-01-15T08:36:28Z" level=debug msg="connected to ap-gew1.spotify.com:4070"
Jan 15 08:36:29 duchamp go-librespot[1226]: time="2026-01-15T08:36:29Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta"
Jan 15 08:36:29 duchamp go-librespot[1226]: time="2026-01-15T08:36:29Z" level=info msg="refused zeroconf from iPhone" username="aa***ta"
Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=debug msg="obtained new client token:  [redacted]"
Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=debug msg="connected to ap-gew1.spotify.com:4070"
Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta"
Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=info msg="refused zeroconf from iPhone" username="aa***ta"



Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=debug msg="obtained new client token:  [redacted]"
Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=debug msg="connected to ap-gew1.spotify.com:4070"
Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta"
Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=info msg="refused zeroconf from iPhone" username="aa***ta"

Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=debug msg="obtained new client token: [redacted]"
Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=debug msg="connected to ap-gew1.spotify.com:4070"
Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta"
Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=info msg="refused zeroconf from iPhone" username="aa***ta"
Originally created by @2opremio on GitHub (Jan 15, 2026). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/283 This happens when trying to transfer a session from my phone: ``` Jan 15 08:36:28 duchamp go-librespot[1226]: time="2026-01-15T08:36:28Z" level=debug msg="obtained new client token: [redacted]" Jan 15 08:36:28 duchamp go-librespot[1226]: time="2026-01-15T08:36:28Z" level=debug msg="connected to ap-gew1.spotify.com:4070" Jan 15 08:36:29 duchamp go-librespot[1226]: time="2026-01-15T08:36:29Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta" Jan 15 08:36:29 duchamp go-librespot[1226]: time="2026-01-15T08:36:29Z" level=info msg="refused zeroconf from iPhone" username="aa***ta" Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=debug msg="obtained new client token: [redacted]" Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=debug msg="connected to ap-gew1.spotify.com:4070" Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta" Jan 15 08:36:32 duchamp go-librespot[1226]: time="2026-01-15T08:36:32Z" level=info msg="refused zeroconf from iPhone" username="aa***ta" Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=debug msg="obtained new client token: [redacted]" Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=debug msg="connected to ap-gew1.spotify.com:4070" Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta" Jan 15 08:36:35 duchamp go-librespot[1226]: time="2026-01-15T08:36:35Z" level=info msg="refused zeroconf from iPhone" username="aa***ta" Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=debug msg="obtained new client token: [redacted]" Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=debug msg="connected to ap-gew1.spotify.com:4070" Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=error msg="failed creating new session from iPhone" error="failed authenticating accesspoint with blob: failed performing keyexchange: failed reading APResponseMessage message: failed reading message length: EOF" username="aa***ta" Jan 15 08:36:38 duchamp go-librespot[1226]: time="2026-01-15T08:36:38Z" level=info msg="refused zeroconf from iPhone" username="aa***ta" ```
Author
Owner

@2opremio commented on GitHub (Jan 15, 2026):

When restarting go-librespot it goes into a short crash loop and it finally manages to connect. After that I can transfer the session without problems.

<!-- gh-comment-id:3753582494 --> @2opremio commented on GitHub (Jan 15, 2026): When restarting go-librespot it goes into a short crash loop and it finally manages to connect. After that I can transfer the session without problems.
Author
Owner

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

Which version are you running? I added a builtin retry mechanism that changes the AP endpoint in 63920cf387

<!-- gh-comment-id:3791773965 --> @devgianlu commented on GitHub (Jan 23, 2026): Which version are you running? I added a builtin retry mechanism that changes the AP endpoint in 63920cf3875ea89b56984963917f41bc57b4b165
Author
Owner

@2opremio commented on GitHub (Jan 23, 2026):

Jan 22 08:03:08 duchamp go-librespot[1256]: time="2026-01-22T08:03:08Z" level=info msg="running go-librespot 0.6.1"

<!-- gh-comment-id:3791903783 --> @2opremio commented on GitHub (Jan 23, 2026): Jan 22 08:03:08 duchamp go-librespot[1256]: time="2026-01-22T08:03:08Z" level=info msg="running go-librespot 0.6.1"
Author
Owner

@2opremio commented on GitHub (Jan 23, 2026):

I think it's older thank your change. I will upgrade and see if it helps

<!-- gh-comment-id:3791906559 --> @2opremio commented on GitHub (Jan 23, 2026): I think it's older thank your change. I will upgrade and see if it helps
Author
Owner

@2opremio commented on GitHub (Jan 23, 2026):

Just upgraded to 80aab194 , let's see if that helps

Thanks a lot for uploading build artifacts BTW, it really simplifies deploying unreleased versions.

<!-- gh-comment-id:3791925337 --> @2opremio commented on GitHub (Jan 23, 2026): Just upgraded to 80aab194 , let's see if that helps Thanks a lot for uploading build artifacts BTW, it really simplifies deploying unreleased versions.
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#171
No description provided.