Replies: 4 comments
-
I added a general comment on this topic here before seeing this (identical) issue #142 (comment):
Thank you for the debug info showing that the same requests do succeed when repeated 🙏 . As you suggest, I increased the wait time (to 3 seconds) and also increased the number of retries (from 1 to 2). Let me know if that improves things. |
Beta Was this translation helpful? Give feedback.
-
Hey thanks so much for replying! It's great to see a project that actually gets maintained. It does appear to be doing what you described now that you deployed the new code, but unfortunately we still ended up hitting the limit. It seems like Spotify is probably doing something intentional here, but obviously doesn't want to expose whatever it is. I watched it carefully and managed to capture another network screenshot just before the third failure and the page refreshed. Nothing we don't already know unfortunately, it looks like it is just timing out on the same call even with the 3 second gap(twice). All the chunks are the same size so it seems unlikely that it is a performance problem on spotify's side, but have you tried a smaller chunk size? |
Beta Was this translation helpful? Give feedback.
-
Sure 🙂. I can't claim to be especially responsive but I do get around to these things eventually.
Could be, yep 🤷♂️.
Yes I'm afraid I wasn't especially optimistic. As I said before, there's just no indication of what (if anything) to do to fix this on the Exportify side.
This got me thinking and I realized that actually a larger chunk size would result in fewer requests to the API. That's typically the way to go when exporting large amounts of data. It turns out they allow 50, so I increased that from 20 as a last shot at this. |
Beta Was this translation helpful? Give feedback.
-
More people experiencing this using the API here, and no guidance or fix from Spotify since 2021. |
Beta Was this translation helpful? Give feedback.
-
Hello! I am consistently hitting failures on the 3 retries per chunk when trying to export a large playlist (few thousand songs) - always 502 errors, and never on the same chunk twice. I've been trying to export this playlist a couple of times a day for the last two weeks with no luck and spotify has not been reporting any issues with their API during that time. I've tried this on multiple different ISPs, so I know this isn't an issue unique to my connection.
Since it seems to be an intermittent issue on Spotify's end, you might consider increasing the delay between retries when you hit a failure to give Spotify a second to recover, since even after hitting the first failure it will succeed most of the time on the first or second retry. But then inevitably before finishing the playlist it will hit three in a row and your code exits. Below are a couple of screenshots from the network tab on chrome showing the behavior while exporting a large playlist(the gaps are the 502s that succeeded on a retry).
Beta Was this translation helpful? Give feedback.
All reactions