[GH-ISSUE #34] False issues caused by network/api problems #23

Open
opened 2026-02-27 20:07:44 +03:00 by kerem · 2 comments
Owner

Originally created by @tomballgithub on GitHub (Feb 12, 2026).
Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/34

In general, when I look at the console for this app, I can count on there being some type of periodic network issue causing activity and not that a monitored user actually did anything.

At 11pm last night, I got 13 of these playlist errors in a row. It sure would be nice to have a way to protect against these errors. Yes, as I mentioned above, there are lots of little things that cause random error messages, but getting so many of these at once is a true issue as opposed to an annoyance.

* Error while processing playlist XXX, skipping for now: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/playlistsXXXfields=name,description,owner,followers,external_urls,tracks.total,collaborative,images
Timestamp:                      Wed 11 Feb 2026, 23:00:05
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

* Error while processing playlist XXX, skipping for now: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/playlistsXXXfields=name,description,owner,followers,external_urls,tracks.total,collaborative,images
Timestamp:                      Wed 11 Feb 2026, 23:00:06
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Other random errors:

* Error while processing playlist XXX [ https://open.spotify.com/playlist/XXX?si=1 ], skipping for now: Playlist's total tracks number is missing or malformed
Timestamp:                      Tue 10 Feb 2026, 08:49:26
─────────────────────────────────────────
* Error, retrying in 5 minutes: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/users/XXX
Timestamp:                      Tue 03 Feb 2026, 02:00:03
───────────────────────────────────────────────────────────────
Originally created by @tomballgithub on GitHub (Feb 12, 2026). Original GitHub issue: https://github.com/misiektoja/spotify_profile_monitor/issues/34 In general, when I look at the console for this app, I can count on there being some type of periodic network issue causing activity and not that a monitored user actually did anything. At 11pm last night, I got 13 of these playlist errors in a row. It sure would be nice to have a way to protect against these errors. Yes, as I mentioned above, there are lots of little things that cause random error messages, but getting so many of these at once is a true issue as opposed to an annoyance. ``` * Error while processing playlist XXX, skipping for now: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/playlistsXXXfields=name,description,owner,followers,external_urls,tracks.total,collaborative,images Timestamp: Wed 11 Feb 2026, 23:00:05 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── * Error while processing playlist XXX, skipping for now: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/playlistsXXXfields=name,description,owner,followers,external_urls,tracks.total,collaborative,images Timestamp: Wed 11 Feb 2026, 23:00:06 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── ``` Other random errors: ``` * Error while processing playlist XXX [ https://open.spotify.com/playlist/XXX?si=1 ], skipping for now: Playlist's total tracks number is missing or malformed Timestamp: Tue 10 Feb 2026, 08:49:26 ``` ``` ───────────────────────────────────────── * Error, retrying in 5 minutes: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/users/XXX Timestamp: Tue 03 Feb 2026, 02:00:03 ─────────────────────────────────────────────────────────────── ```
Author
Owner

@misiektoja commented on GitHub (Feb 12, 2026):

We could potentially introduce some flag / config option to silence those warnings or filter them and print only more relevant ones. I personally like it as I have full view on what is going on.

For now you I suggest you remove those lines below (lines 3691-3693):

print(f"\n* Error while processing playlist {spotify_format_playlist_reference(p_uri)}, skipping for now" + (f": {e}" if e else ""))
print_cur_ts("Timestamp:\t\t\t")
error_while_processing = True
<!-- gh-comment-id:3891722310 --> @misiektoja commented on GitHub (Feb 12, 2026): We could potentially introduce some flag / config option to silence those warnings or filter them and print only more relevant ones. I personally like it as I have full view on what is going on. For now you I suggest you remove those lines below (lines 3691-3693): ```python print(f"\n* Error while processing playlist {spotify_format_playlist_reference(p_uri)}, skipping for now" + (f": {e}" if e else "")) print_cur_ts("Timestamp:\t\t\t") error_while_processing = True ```
Author
Owner

@tomballgithub commented on GitHub (Feb 13, 2026):

Thanks. I'm testing something for the playlist errors specifically, and may create a PR

<!-- gh-comment-id:3898925055 --> @tomballgithub commented on GitHub (Feb 13, 2026): Thanks. I'm testing something for the playlist errors specifically, and may create a PR
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#23
No description provided.