I copied your code verbatim but worth noting that
"Authorization": "oauth:key",
In API calls, it’s
For Kraken
"Accept": "application/vnd.twitchtv.v5+json",
"Authorization": "OAuth YourKey",
"Client-ID": "client-id"
For helix (different pre word and no v5 header)
"Authorization": "Bearer YourKey",
"Client-ID": "client-id"
And I’m not sure if oauth:key is a placeholder or actually what you wrote