Closed Schrotty closed 3 years ago
I'm hitting the same problem, could you tell what was your solution?
Oh, sorry, no solution. I used another library in the end.
oh, thank you. it's bad news, because afaik other libraries don't have support for the stream chat :/
I think I found it out. writing here so others may find this.
It seems the Helix class does not obtain an oauth token for itself. Twitch Chat Downloader obtains the oauth token by itself, using this snippet:
oauth_token = requests.post(f"https://id.twitch.tv/oauth2/token"
f"?client_id={client_id}"
f"&client_secret={client_secret}"
f"&grant_type=client_credentials").json()['access_token']
and then uses this contructor:
helix = twitch.Helix(client_id=client_id, bearer_token=oauth_token, use_cache=True)
but well, in the end I get the same random errors and slowness as I had with TCD :/
Hello there, I tried to fetch the moderators of a channel but got a 401.
Both ClientID and ClientSecret are set. Any idea? Or is this type of request not supported?