I have no idea what you are trying to do here.
I see calls to kraken, calls to helix, calls to generate an app access token, calls to chat and a partial chat log.
You tried to generate an app access token, with scopes on which doesn’t work, becuase it’s an app access token and doesn’t have a user attached to it.
Whats not working, what are you trying to do?!
At a guess, given the Topic of this thread, you are trying to follow a channel, but you have used an App Access/ClientCredentials token, and that doesn’t have a user attached to it, so will fail.
So the error message
Is correct, you tried to follow a channel, but your token is not a user token, so it has failed.