New "get polls" endpoint return random HTTP 500 error

Worth noting you can only have 1 active poll at once. So you onlly need to get 1 instead of 20

So doing first=1 will return the most recent poll, and you can check that state and action, instead of getting 20 and processing them

Same with the predictions endpoint. Only one prediction can be active at once.

As to this random 500, you should raise it on the GitHub, Issues · twitchdev/issues · GitHub with the reproduction steps but since it’s intermittent it might not even be related to the Polls endpoint but another part of helix.

It’s not something I have observed with my own testing. (Just done a random spot test just now and not be able to get any 500’s)

So if you get a 500 just insta retry, then if you get 2/3 in a row like that, then theres probably something worth reporting