jp1995 / kappa-launcher

Twitch launcher using Rofi
MIT License
27 stars 4 forks source link

after twitch api change no cannel listed anymore #15

Closed jasondaigo closed 2 years ago

jasondaigo commented 2 years ago

delete old config and started new one with another token. all i see in terminal iis this:
jq: error (at /home/jason/.config/kpl/followdata.json:0): Cannot iterate over null (null)

and rofi channel list is empty

jp1995 commented 2 years ago

duh, I was gonna do something about this but then I forgot..

fixing the API should be easy, the transition documentation is pretty clear. I'll deal with it tomorrow.

jp1995 commented 2 years ago

aight fixed in 8b76f12 , update live on aur too.

it's 5am so hopefully I didn't miss any bugs, let me know otherwise.

jasondaigo commented 2 years ago

thanks sir.
didnt change a thing on my side though, using aur/kappa-launcher-git r90.8b76f12-1 [installed] [2+] [1.60%] [2 Mar 2022

started from scratch, still no channels and the error jq: error (at /home/jason/.config/kpl/followdata.json:0): Cannot iterate over null (null)

jp1995 commented 2 years ago

Hmm, seems to work just fine for me

The jq issue indicates that it's failed to query any useful data. Are you getting any other errors? Did you regenerate your auth token?

I tested it with an incorrect token and the error handling was borked so it didn't say anything useful. I'm guessing it's that? Just get a new token.

jasondaigo commented 2 years ago

Hmm, seems to work just fine for me

The jq issue indicates that it's failed to query any useful data. Are you getting any other errors? Did you regenerate your auth token?

new token generated.

cat followdata.json {"error":"Unauthorized","status":401,"message":"Missing scope: user:read:follows"}

jp1995 commented 2 years ago

Weird. Are you getting it here? https://spheroid.xyz/kappa/

jasondaigo commented 2 years ago

Weird. Are you getting it here? https://spheroid.xyz/kappa/

yes, didnt try private mode yet in browser;, maybe cache shannigans

jp1995 commented 2 years ago

Could be cache shenanigans. Works fine for me, and if you look at the generation closer it does include the scope.

jasondaigo commented 2 years ago

it was; damn you browser cache. works now. thanks sir. appreciate it

jp1995 commented 2 years ago

no worries!