linsomniac/spotify_to_ytmusic

(HTTP Error 502: Bad Gateway) (None songs)

Opened this issue · 5 comments

I'm trying to backup all of my playlists and my liked songs but I'm getting a message saying that it's unable to process this playlist. I went In and checked it and I just don't have access to the playlist at all, it says it doesn't exist. For more context it's an older Spotify time capsule. Image uploaded below, it'll just say this and then stop entirely without making the json file. I am also unable to remove the playlist from my library, or at least, I'm not sure how to do it without having access to it.
image

This is what it shows when I look at the playlist on spotify
image

If you're having issues accessing the playlist normally in Spotify as well as in the script, you may be having Internet issues, not script issues. 502: Bad Gateway requests are usually caused by a breakdown in communication somewhere on the Internet between you and the target server (Spotify). Maybe this is an issue with your router, your DNS servers, or even your internet service provider?

If you're having issues accessing the playlist normally in Spotify as well as in the script, you may be having Internet issues, not script issues. 502: Bad Gateway requests are usually caused by a breakdown in communication somewhere on the Internet between you and the target server (Spotify). Maybe this is an issue with your router, your DNS servers, or even your internet service provider?

It doesn't seem to be an issue with my dns. It seems to be an issue with the playlist just bugging out on Spotifys end. I've tried it on multiple servers in a couple different countries and it doesn't load no matter what.

If you're having issues accessing the playlist normally in Spotify as well as in the script, you may be having Internet issues, not script issues. 502: Bad Gateway requests are usually caused by a breakdown in communication somewhere on the Internet between you and the target server (Spotify). Maybe this is an issue with your router, your DNS servers, or even your internet service provider?

It doesn't seem to be an issue with my dns. It seems to be an issue with the playlist just bugging out on Spotifys end. I've tried it on multiple servers in a couple different countries and it doesn't load no matter what.

Having same problem here... It seems that "Your time capsule" playlist is absolutely bugged. Don't know what to do there bc I also can't remove it through Spotify UI...

same problem.
Loading playlist: Your Time Capsule (None songs)
Couldn't load URL: https://api.spotify.com/v1/playlists/37i9dQZF1EuQ9MXuP07I7r/tracks?limit=100 (HTTP Error 502: Bad Gateway)
Trying again...

GPT helped...

**Differences Summary:
1.Skip "Your Time Capsule" Playlist:

*Added this check in the loop:
*python

if playlist["name"] == "Your Time Capsule":
print("Skipping playlist: Your Time Capsule")
continue

2.Indentation Fix:

*Ensured playlists += playlist_data is outside the for loop to prevent indentation errors.

3.Print Formatting:

*Replaced format() with f-strings for printing:
python

print(f"Loading playlist: {playlist['name']} ({playlist['tracks']['total']} songs)")

These are the only changes made from the original code.