Closed VGorku closed 4 months ago
I think I got it.
I was testing off-stream, basically starting Predictions and ending them without any vote. It seems that current implementation does not expect data['event']['outcomes']['top_predictors'] to be empty list:
Here is my disgusting workaround in twitchAPI/eventsub/webhook.py if someone interested (I dont need top predictors for my project)
Hope this will be fixed 🤞
I cant reproduce this by starting a prediction & then either letting it run out or closing it manually without anyone voting.
Could you please provide the following for further investigation:
@Teekeks, I think this may be related to my issue, as I'm also having problems with TopPredictors
being handled incorrectly in a prediction.end
event
However issue occurs in websocket, not webhooks
Fix for this is now available on pypi in v4.2.1. Was not able to reproduce because I already fixed that locally...
Subscriptions and two simple callbacks:
What I did is that simply created Prediction on Twitch (everything was fine) and closed submissions right after that. Seems like it's failed upon parsing the Lock event https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelpredictionlock
Sorry for the screenshot, that's all I got for now
Any suggestions on how to fix that? Thanks <3