You are trying to call the helix API with kraken headers. That won’t work.
For Helix:
- You don’t need the
Acceptheader - You need to use the keyword
Bearerin front of the token instead ofOAuth
Additionally, you need to add the required broadcaster_id query parameter for the polls endpoint to work.
For more info on kraken vs helix, see https://dev.twitch.tv/docs/api/migration
Also note: kraken will be shut down soon, so you’ll want to move away from it.