mumixam / weechat-twitch

Checks status of streams using twitch api
31 stars 9 forks source link

=!= twitch.py: error communicating with twitch api #4

Closed Techman closed 3 years ago

Techman commented 6 years ago

Hello,

I'm receiving a lot of errors with this script recently, and I reinstalled and the issue still persists. I even tried registering my own client ID on Twitch thinking that maybe the app has reached its resource limit or something, but nope.

When trying to enable debugging, I managed to crash weechat so I'm not tempted to do it again.

mumixam commented 6 years ago

After speaking to techman- on irc we finally discovered this issue was related to ssl/tls verify in curl. Commit https://github.com/mumixam/weechat-twitch/commit/20ab70c5478aa19d868f70f84617d6e92c8d95da adds a option to be able to disable ssl/tls verification.

furai commented 5 years ago

It just started happening to me out of the blue. So it's for sure just the SSL/TLS verification error? Can I make the error more verbose to see what it actually is about?

mumixam commented 5 years ago

Do you have debug mode on? /set plugins.var.python.twitch.debug on to enable debug mode

kossmikman commented 4 years ago

I don't know if it's related or anything, but i 've been getting twitch api error constantly for the last few months: twitch.py: Error with twitch API (data key missing from json) I have debug mode on. I tried enabling/disabling the ssl/tls verification, but to no avail.

mumixam commented 4 years ago

@kossmikman are you running the latest commit from github of the script? twitch pushed some changes that require a oauth token for all api calls now. i havent got around to pushing the update to the weechat repos yet

kossmikman commented 4 years ago

I'm running the weechat repos, i'll check it out with the latest script.

kossmikman commented 4 years ago

It's fixed in the latest script, thanks.

Techman commented 4 years ago

I'll be honest, this issue slipped into the back of my mind. I didn't know it was still open. I run the weechat repo version of the script, so I guess I will have to wait until then :)

kapiorr commented 3 years ago

still have a problem weechat 3.0-dev twitch.py latest from github. On connect to channel: twitch.py: exception: Expecting value: line 1 column 1 (char 0 twitch.py: Error with twitch API (data key missing from json) twitch.py: {"error":"Unauthorized","status":401,"message":"OAuth token is missing"}

mumixam commented 3 years ago

@kapiorr is plugins.var.python.twitch.token set and valid?

Its now required that you have a oauth token set that is linked to the client-id you specify. Its pretty annoying how complex they decided to make it

kapiorr commented 3 years ago

No, I didnt known about that. Thanks a lot.

mumixam commented 3 years ago

@kapiorr try this https://mumixam.github.io/weechat_twitch/

kapiorr commented 3 years ago

Everything works fine. Thanks a lot.

Techman commented 3 years ago

I am going to close this, because I forgot I had it open. I haven't had an issue with the script for a while.

Thank you to all who assisted me.