Skip to content

fix: retry PutConnectState on error, check ContentLength to avoid EOF error#102

Merged
devgianlu merged 4 commits intodevgianlu:masterfrom
kenny59:fix/spclient_putconnectstate_500
Sep 29, 2024
Merged

fix: retry PutConnectState on error, check ContentLength to avoid EOF error#102
devgianlu merged 4 commits intodevgianlu:masterfrom
kenny59:fix/spclient_putconnectstate_500

Conversation

@kenny59
Copy link
Copy Markdown
Contributor

@kenny59 kenny59 commented Sep 25, 2024

I was getting 500 status with empty body randomly throughout the day when PutConnectState was called.
Have tested for a day or so and I am not getting EOF errors anymore.

Commit does:
Retrying the request (not sure how important that method is for the app to run properly) and checking ContentLength so we are not getting EOF errors during decoding JSON.

Comment thread spclient/spclient.go Outdated
@devgianlu devgianlu merged commit 4a2c8ad into devgianlu:master Sep 29, 2024
thilojaeggi pushed a commit to thilojaeggi/go-librespot that referenced this pull request Oct 13, 2024
mcMineyC pushed a commit to mcMineyC/go-librespot_embedded that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants