Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

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

Closed
Lirt opened this issue May 8, 2018 · 4 comments · Fixed by #357
Closed

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

Lirt opened this issue May 8, 2018 · 4 comments · Fixed by #357

Comments

@Lirt
Copy link

Lirt commented May 8, 2018

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 👍

@sim-f
Copy link

sim-f commented May 8, 2018

See the same issue
On solus package and flatpak

@Aqa-Ib
Copy link

Aqa-Ib commented May 9, 2018

Same on Debian

@julfur
Copy link

julfur commented May 9, 2018

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

@ggdaynight
Copy link

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.

dengelt added a commit to dengelt/gnome-twitch that referenced this issue May 9, 2018
Apparently Twitch now requires SSL for (some?) APIs. The other problem is that usher.twitch.tv has a broken SSL certificate, because the domain listed is usher.ttvnw.net. That URL seems to work.

Should fix vinszent#356
vinszent pushed a commit that referenced this issue May 18, 2018
Apparently Twitch now requires SSL for (some?) APIs. The other problem is that usher.twitch.tv has a broken SSL certificate, because the domain listed is usher.ttvnw.net. That URL seems to work.

Should fix #356
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants