Kruiser8 / Kruiz-Control

Kruiz Control enables a pseudo code approach to manage and automatically handle Twitch Channel Points, Twitch Chat, OBS or SLOBS, and StreamElements or Streamlabs alerts.
Other
231 stars 32 forks source link

Invalid Password of Permission Scopes Error #71

Closed alkaris2 closed 1 year ago

alkaris2 commented 1 year ago

This appears to be a bug because I've set valid password and permission scopes, but when I use a channel redeem on Twitch it doesn't work when it should. It was working previously, never changed anything, but then suddenly it decides it doesn't want to work because it claims invalid password or permissions scope. I tried changing to a new OAuth Token to see if that fixed the issue, but the issue remains, but like I said nothing WAS changed, it's been fine until now. Perhaps it's a change on Twitch side that broke the API that Kruiz-Control interacts with.

14:43:51.367: [obs-browser: 'Kruiz_Control'] Error: Kruiz Control v1.6.2 Initialized (http://absolute//home/alkaris/Kruiz-Control/js/index.js:4)
14:43:51.382: [obs-websocket] [WebSocketServer::onOpen] New WebSocket client has connected from [::ffff:127.0.0.1]:47852
14:43:51.389: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:127.0.0.1]:47852` has disconnected with code `4009` and reason: Authentication failed.
14:43:51.392: [obs-browser: 'Kruiz_Control'] Error: {"code":4009} (http://absolute//home/alkaris/Kruiz-Control/js/obs/obs-wrapper.js:22)
14:43:52.097: [obs-browser: 'Kruiz_Control'] Error: Invalid Password or Permission Scopes (channel:read:redemptions, user:read:email) (https://cdn.jsdelivr.net/npm/comfy.js@latest/dist/comfy.min.js:1)
14:43:55.764: [obs-browser: 'Kruiz_Control'] Error: Kruiz Control: Too many inputs provided for API.
14:43:55.764: Expected (2 inputs): ["action","url"]

It has valid password set, and has valid permission scopes set, but as the above error shows it seems to think otherwise.

Kruiser8 commented 1 year ago

Hi @alkaris2,

The Invalid Password or Permission Scopes error is unrelated to channel point redeems. Channel point redeems in v1.6.2 are based on your settings/twitch/user.txt file. No oauth code/scope is required.

Double check your Twitch user setting is set to the right channel and then also validate that the channel point reward name matches exactly (including any extra spaces).

If it still doesn't work, please provide the event that you're trying to run as well as a link to your twitch channel.

Thanks, Kruiser

Kruiser8 commented 1 year ago

Hi @alkaris2,

I'm going to close this ticket. Please follow up if you have any questions.

Thanks, Kruiser