mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[PR #102] [MERGED] fix: retry PutConnectState on error, check ContentLength to avoid EOF error #206
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#206
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?
📋 Pull Request Information
Original PR: https://github.com/devgianlu/go-librespot/pull/102
Author: @kenny59
Created: 9/25/2024
Status: ✅ Merged
Merged: 9/29/2024
Merged by: @devgianlu
Base:
master← Head:fix/spclient_putconnectstate_500📝 Commits (4)
423d091fix: retry PutConnectState on error, check ContentLength to avoid EOF errorde4cbdcMerge branch 'devgianlu:master' into fix/spclient_putconnectstate_5009fa5ad9Merge branch 'devgianlu:master' into fix/spclient_putconnectstate_500b01b41ffix: remove redundant check for ContentLength <= 0 and revert log messages to original value📊 Changes
1 file changed (+31 additions, -25 deletions)
View changed files
📝
spclient/spclient.go(+31 -25)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.