Spotify API requests not working after first time
vincenzobraghetto
HOBBYOP

10 months ago

Hi, i have a problem regarding the use of the Spotify API for a discord bot. As usual, the bot plays music that users request. The issue is that, when using my bot being deployed on Railway, for some reason if a user requests a song from a Spotify URL, it does work normally, but on the second time it does not work anymore. In contrast, locally on my machine it works without any problems, the requests to the Spotify API execute perfectly and more than once. Due to these reasons, I suspect it may be an IP address issue? could it be that Spotify somehow has my Railway IP addresses "targeted"? I dont really know.

If I restart my bot deployment however, it works again but only the first time a Spotify URL is given; then no more than once (the cycle repeats).

Project ID: a768e2c7-ab54-4ea1-b013-f97ba1d93b82

0 Replies

Loading...