SaxyPandaBear / TwitchSongRequests

An unofficial Twitch integration that uses channel point redemption events to trigger enqueuing song requests in a connected Spotify player.
MIT License
14 stars 5 forks source link

[Bug]: Song Request stopped working #264

Closed S4MARON closed 7 months ago

S4MARON commented 7 months ago

What happened?

Am i still onboarded? Because since yesterday the song request no longer works. There were a bunch of song requests and none were automatically added to the queue. I just reconnected everything and it still doesn't seem to work. Btw thank you for offering this service, its great

What part of the service is not working for you?

No response

snKarma commented 7 months ago

Yeah it stopped working for me aswell, such a great upgrade for my stream hope it works soon again

SaxyPandaBear commented 7 months ago

Okay clearly I must be doing something wrong. I'm trying to remove streamers who haven't been using it in the past 30 days, but this makes me think that how I'm trying to determine that is not working.

snKarma commented 7 months ago

Yeah I prob had like 500 request past 30 days

S4MARON commented 7 months ago

I also had a bunch

SaxyPandaBear commented 7 months ago

so S4MARON is still onboarded, but snKarma isn't. I'll have to see why the songs aren't queueing for S4MARON. Separately, I need to figure out why my search for users to remove included snKarma when it shouldn't have.

SaxyPandaBear commented 7 months ago
successfully saved user preferences for 653821561

successfully deleted user 653821561

@S4MARON did you revoke access for yourself?

SaxyPandaBear commented 7 months ago

265 might also be related to why they aren't working. It looks like there was a change in the Spotify API that broke a bunch of people that use it.

S4MARON commented 7 months ago

I revoked it myself and reconnected hoping to fix the problem haha ​​I hope I didn't make a mistake

SaxyPandaBear commented 7 months ago

So I probably have to do something to fix the twitch side of it for you, but also there is an issue with the Spotify API that is just breaking my project in general so I will deal with that once the other issue is fixed

S4MARON commented 7 months ago

Thank you, I appreciate your effort. Do you have a ko-fi site or something?

SaxyPandaBear commented 7 months ago

I thought about making one but haven't bothered yet. In the discussions tab someone asked for something similar and I linked my paypal, but that's it so far. You also shouldn't feel obligated to pay me. This was just a fun project I wanted to do for a long time.

snKarma commented 7 months ago

Am I back onboarded and do I need to reconect everything? Thank you btw really nice for my stream

simpsina commented 7 months ago

I heard that spotify changed their API somehow. My song request stopped working too (same as other thing that helped me to integrate spotify to my stream for example my spotify badge, but i fixed it by reconnecting), reconnect didn't help :(

SaxyPandaBear commented 7 months ago

@snKarma no, not yet, sorry I'm on vacation so this isn't my main priority right now.

@simpsina It's broken on my end, not yours.

I know what I have to do to fix it immediately, but was hoping the library I use to connect to the Spotify API would have fixed the issue by now

S4MARON commented 7 months ago

its working again thx

simpsina commented 7 months ago

its all working now <3

snKarma commented 7 months ago

Thank you for fixing it, it sometimes stops working for a couple of hours, do you maybe know why and how to fix it? Also have a nice vacation! And dont stress about it enjoy your vacation

SaxyPandaBear commented 7 months ago

I'm not aware of anything that would break it for a couple hours. I can check to see if I find anything. Also I must have missed it but @snKarma I never removed you, so I think the issue you were having is the same as everyone else here. I thought I removed you. That's my bad for not double checking.

SaxyPandaBear commented 7 months ago

For you I see a couple different errors.

failed to get valid token
error:"Post "https://accounts.spotify.com/api/token": context canceled"
input: "https://open.spotify.com/intl-de/artist/6nJEMDVNcq7fduXgk7EdGG"

The first one looks like just an intermittent issue from Spotify's side. Nothing I can really do about that other than adding retries on my end on failure, but that would require me changing a bunch of code cause I have to respond quickly to Twitch when I get an event.

Edit: The second one seems like a valid failure, because the link is to an artist, not a song. Also, I don't support queuing YouTube videos, since my project directly modifies your Spotify playlist (which is why you need Spotify premium for it to work), and doesn't interact with YT at all. I have considered trying to work with youtube as well but It's a little too complicated to handle both separately, and way too complicated to try to merge them.

SaxyPandaBear commented 7 months ago

As far as I can tell, this particular issue is resolved. I created a new issue for myself to work on eventually that should help a little bit with the intermittent failures - #266