vinszent / gnome-twitch

Enjoy Twitch on your GNU/Linux desktop
http://gnome-twitch.vinszent.com
Other
440 stars 40 forks source link

Gnome Twitch crashes on opening stream (Requests must be made over SSL) #356

Closed Lirt closed 6 years ago

Lirt commented 6 years ago

Hello,

on Fedora 28 with Flatpack when I open Lirik's stream for example and Gnome Twitch crashes directly. The log I see in console is below.

Logs that may say what is wrong are cannot set NULL uri and Received unsuccessful response from url 'http://api.twitch.tv/api/channels/lirik/access_token' with code '400' and body '{"error":"Bad Request","status":400,"message":"Requests must be made over SSL"}'.

I am not 100% positive if this part is the issue. I can provide more information if you have a way to run debug mode.

$ flatpak run com.vinszent.GnomeTwitch
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "pk-gtk-module"
[19:10:52] Message - GNOME-Twitch : {GtApp:370} Startup, running version '0.4.1'
[19:10:52] Message - GNOME-Twitch : {GtFollowsManager:680} Loaded '4' follows from file
[19:10:52] Message - GNOME-Twitch : {GtApp:339} Activate
[19:10:52] Message - GNOME-Twitch : {GtPlayer:132} Loading chat settings
[19:10:52] Message - GNOME-Twitch : {GtPlayer:999} Loaded player backend 'GStreamer OpenGL player backend'
[19:10:52] Message - GNOME-Twitch : {GtPlayerBackendGstreamerOpenGL:253} {GtPlayerBackendGstreamerOpenGL} Init
[19:10:52] Warning - GNOME-Twitch : cannot set NULL uri
[19:11:01] Message - GNOME-Twitch : {GtPlayer:1310} Opening stream 'lirik' with quality 'high'
[19:11:01] Warning - GNOME-Twitch : {GtTwitch:336} Received unsuccessful response from url 'http://api.twitch.tv/api/channels/lirik/access_token' with code '400' and body '{"error":"Bad Request","status":400,"message":"Requests must be made over SSL"}'
[19:11:01] Warning - GNOME-Twitch : {GtTwitch:594} Error getting stream access token for channel 'lirik' because: Received unsuccessful response from url 'http://api.twitch.tv/api/channels/lirik/access_token' with code '400' and body '{"error":"Bad Request","status":400,"message":"Requests must be made over SSL"}'

Great project by the way :+1:

sim-f commented 6 years ago

See the same issue On solus package and flatpak

Aqa-Ib commented 6 years ago

Same on Debian

julfur commented 6 years ago

Same on Ubuntu. We're all impacted, it might be a twitch API issue. It was working fine until yesterday.

ggdaynight commented 6 years ago

What I'm seeing here and in my logs as well, the twitch API doesn't accept the request in plain HTTP, which is a good thing security-wise.

Sorry guys, but I don't have the time to find exact problem in the code and test it. I've to study hard. Maybe just the ACCESS_TOKEN_URI definition in gt-twitch.c needs to be changed and that's all, or maybe it needs more love.

I hope I've helped a bit, but I guess the developers watching the outputs will know more, than I do about this issue.