[GH-ISSUE #10] Issue with handling errant API response #9

Closed
opened 2026-02-27 20:07:40 +03:00 by kerem · 3 comments
Owner

Originally created by @tomballgithub on GitHub (May 17, 2025).
Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/10

I saw the following in the log, which I suspect means a response from the API was incorrect/unexpected and not handled correctly. Should have a check for the response to verify it's 'good' and if not, to ignore it and prevent errors.

Error while processing playlist with URI spotify:playlist:[redacted], skipping for now - int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Originally created by @tomballgithub on GitHub (May 17, 2025). Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/10 I saw the following in the log, which I suspect means a response from the API was incorrect/unexpected and not handled correctly. Should have a check for the response to verify it's 'good' and if not, to ignore it and prevent errors. `Error while processing playlist with URI spotify:playlist:[redacted], skipping for now - int() argument must be a string, a bytes-like object or a real number, not 'NoneType' `
kerem closed this issue 2026-02-27 20:07:40 +03:00
Author
Owner

@tomballgithub commented on GitHub (May 17, 2025):

Also saw this:

Error while processing playlist with URI spotify:playlist:[redacted], skipping for now - 'NoneType' object is not subscriptable

<!-- gh-comment-id:2888551474 --> @tomballgithub commented on GitHub (May 17, 2025): Also saw this: `Error while processing playlist with URI spotify:playlist:[redacted], skipping for now - 'NoneType' object is not subscriptable`
Author
Owner

@misiektoja commented on GitHub (May 21, 2025):

Hey, I think I fixed most of the problematic places that could cause it. Give the new code a try.

<!-- gh-comment-id:2896146382 --> @misiektoja commented on GitHub (May 21, 2025): Hey, I think I fixed most of the problematic places that could cause it. Give the new code a try.
Author
Owner

@tomballgithub commented on GitHub (May 31, 2025):

I haven't seen this repeat over the last 2 weeks

<!-- gh-comment-id:2924058585 --> @tomballgithub commented on GitHub (May 31, 2025): I haven't seen this repeat over the last 2 weeks
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/spotify_profile_monitor#9
No description provided.