[GH-ISSUE #1] client: error parsing JSON: unexpected end of JSON input / Errored when setting headers for the spotifyAPI #1

Closed
opened 2026-02-27 19:22:56 +03:00 by kerem · 2 comments
Owner

Originally created by @tim1f1 on GitHub (Jul 16, 2024).
Original GitHub issue: https://github.com/FrostBreker/spotify-private-api/issues/1

Originally assigned to: @FrostBreker on GitHub.

This was working fine until yesterday, now when I try running it, it keeps doing this error message

2024/07/16 08:47:03 [INFO] --> Fetching track: 245872G9UaVF63NXm1smrH
client: error parsing JSON: unexpected end of JSON input
client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI
2024/07/16 08:47:03 Error fetching track information for track 245872G9UaVF63NXm1smrH: client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [INFO] --> Fetching track: 5rHzVPOZJQXBieRrCdEea7
client: error parsing JSON: unexpected end of JSON input
client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI
2024/07/16 08:47:03 Error fetching track information for track 5rHzVPOZJQXBieRrCdEea7: client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [INFO] --> Fetching track: 4TfeATq0i5WjsFcNb65UxY
client: error parsing JSON: unexpected end of JSON input
client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI
2024/07/16 08:47:03 Error fetching track information for track 4TfeATq0i5WjsFcNb65UxY: client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [INFO] --> Fetching track: 3c0JVUpU76eOXWkNjT7ymF
client: error parsing JSON: unexpected end of JSON input
client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI
2024/07/16 08:47:03 Error fetching track information for track 3c0JVUpU76eOXWkNjT7ymF: client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [INFO] --> Fetching track: 0bsq4DccyQcwpVEc3CoKfa
client: error parsing JSON: unexpected end of JSON input
client: error parsing JSON: unexpected end of JSON input
2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI
2024/07/16 08:47:03 Error fetching track information for track 0bsq4DccyQcwpVEc3CoKfa: client: error parsing JSON: unexpected end of JSON input

I think it might be to do with the late update in the play count yesterday/them updating the API?

Originally created by @tim1f1 on GitHub (Jul 16, 2024). Original GitHub issue: https://github.com/FrostBreker/spotify-private-api/issues/1 Originally assigned to: @FrostBreker on GitHub. This was working fine until yesterday, now when I try running it, it keeps doing this error message > 2024/07/16 08:47:03 [INFO] --> Fetching track: 245872G9UaVF63NXm1smrH > client: error parsing JSON: unexpected end of JSON input > client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI > 2024/07/16 08:47:03 Error fetching track information for track 245872G9UaVF63NXm1smrH: client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [INFO] --> Fetching track: 5rHzVPOZJQXBieRrCdEea7 > client: error parsing JSON: unexpected end of JSON input > client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI > 2024/07/16 08:47:03 Error fetching track information for track 5rHzVPOZJQXBieRrCdEea7: client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [INFO] --> Fetching track: 4TfeATq0i5WjsFcNb65UxY > client: error parsing JSON: unexpected end of JSON input > client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI > 2024/07/16 08:47:03 Error fetching track information for track 4TfeATq0i5WjsFcNb65UxY: client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [INFO] --> Fetching track: 3c0JVUpU76eOXWkNjT7ymF > client: error parsing JSON: unexpected end of JSON input > client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI > 2024/07/16 08:47:03 Error fetching track information for track 3c0JVUpU76eOXWkNjT7ymF: client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [INFO] --> Fetching track: 0bsq4DccyQcwpVEc3CoKfa > client: error parsing JSON: unexpected end of JSON input > client: error parsing JSON: unexpected end of JSON input > 2024/07/16 08:47:03 [ERROR] --> Errored when setting headers for the spotifyAPI > 2024/07/16 08:47:03 Error fetching track information for track 0bsq4DccyQcwpVEc3CoKfa: client: error parsing JSON: unexpected end of JSON input > I think it might be to do with the late update in the play count yesterday/them updating the API?
kerem 2026-02-27 19:22:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@FrostBreker commented on GitHub (Jul 16, 2024):

Hello, I've run some test, can you check if you are using the last version of the package and if your fetching an Id that exist. Try to delete the file response.json.

<!-- gh-comment-id:2230732543 --> @FrostBreker commented on GitHub (Jul 16, 2024): Hello, I've run some test, can you check if you are using the last version of the package and if your fetching an Id that exist. Try to delete the file response.json.
Author
Owner

@tim1f1 commented on GitHub (Jul 16, 2024):

Hello, I've run some test, can you check if you are using the last version of the package and if your fetching an Id that exist. Try to delete the file response.json.

Hi, I did what you suggested, the code seems to be working as normal now, thanks.

<!-- gh-comment-id:2231119803 --> @tim1f1 commented on GitHub (Jul 16, 2024): > Hello, I've run some test, can you check if you are using the last version of the package and if your fetching an Id that exist. Try to delete the file response.json. Hi, I did what you suggested, the code seems to be working as normal now, thanks.
Sign in to join this conversation.
No labels
bug
bug
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/spotify-private-api#1
No description provided.