qutebrowser icon indicating copy to clipboard operation
qutebrowser copied to clipboard

Can't sign into Twitch anymore

Open Xiretza opened this issue 2 years ago • 14 comments

Version info
qutebrowser v2.5.4
Git commit: 
Backend: QtWebEngine 5.15.13, based on Chromium 87.0.4280.144
Qt: 5.15.9 (compiled 5.15.8)

CPython: 3.10.10
PyQt: 5.15.9

sip: 6.7.9
colorama: 0.4.6
jinja2: 3.1.2
pygments: 2.14.0
yaml: 6.0
adblock: 0.6.0
PyQt5.QtWebEngineWidgets: yes
PyQt5.QtWebEngine: 5.15.6
PyQt5.QtWebKitWidgets: no
pdf.js: 3.5.141 (/usr/share/pdf.js/build/pdf.js)
sqlite: 3.41.2
QtNetwork SSL: OpenSSL 3.0.8 7 Feb 2023

Style: QFusionStyle
Platform plugin: wayland
OpenGL: AMD, 4.6 (Compatibility Profile) Mesa 23.0.3
Platform: Linux-6.2.11-arch1-1-x86_64-with-glibc2.37, 64bit
Linux distribution: Arch Linux (arch)
Frozen: False
Imported from /usr/lib/python3.10/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib/qt/libexec, data path: /usr/share/qt

Does the bug happen if you start with --temp-basedir?: yes

Description Signing into twitch fails, with the following message being displayed:

Your browser is not currently supported. Please use a recommended browser or learn more here.

The network log shows a POST request to https://passport.twitch.tv/integrity failing; HTTP status 400 with the following response:

{"error":"Oops! We encountered an unexpected error. Please try again.","errors":["Oops! We encountered an unexpected error. Please try again."],"error_code":5025,"error_description":"integrity failed"}

This also happens when the user agent is set to the Chrome presets.

How to reproduce

  1. Go to https://twitch.tv
  2. Try to log in

See also brave/brave-browser#25598

Xiretza avatar Apr 29 '23 20:04 Xiretza

They might be dropping support for older chromium releases or something. Try switching to the qutebrowser-qt6-git package and see if that helps.

toofar avatar Apr 29 '23 22:04 toofar

No, same issue with qt6 and master (346a39ba1).

Xiretza avatar May 12 '23 17:05 Xiretza

I can confirm that installing qutebrowser-qt6-git fixes this issue and other issues in other websites like slack.

YasserKa avatar May 16 '23 14:05 YasserKa

@YasserKa what's your :version output with qt6? As I said, qt6 doesn't fix it for me, so I'd be curious if there are any obvious differences:

qutebrowser v2.5.4
Git commit: bb302db71-dirty on master (2023-05-08 17:21:20 +1200)
Backend: QtWebEngine 6.5, based on Chromium 108.0.5359.220 (from api)
Qt: 6.5.0

CPython: 3.11.3
PyQt: 6.5.0

sip: no
colorama: 0.4.6
jinja2: 3.1.2
pygments: 2.15.1
yaml: 6.0
adblock: 0.6.0
objc: no
PyQt6.QtWebEngineCore: 6.5.0
pdf.js: 3.6.172 (/usr/share/pdf.js/build/pdf.js)
sqlite: 3.41.2
QtNetwork SSL: OpenSSL 3.0.8 7 Feb 2023

Style: QFusionStyle
Platform plugin: wayland
OpenGL: AMD, 4.6 (Compatibility Profile) Mesa 23.0.3
Platform: Linux-6.3.1-arch2-1-x86_64-with-glibc2.37, 64bit
Linux distribution: Arch Linux (arch)
Frozen: False
Imported from /usr/lib/python3.11/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib/qt6, data path: /usr/share/qt6

Paths:
cache: /tmp/qutebrowser-basedir-xhs6ejzu/cache
config: /tmp/qutebrowser-basedir-xhs6ejzu/config
data: /tmp/qutebrowser-basedir-xhs6ejzu/data
runtime: /tmp/qutebrowser-basedir-xhs6ejzu/runtime
system data: /usr/share/qutebrowser

Autoconfig loaded: yes
Config.py: no config.py was loaded
Uptime: 0:00:41

Xiretza avatar May 16 '23 15:05 Xiretza

qutebrowser v2.5.4
Git commit: 04c64b743-dirty on master (2023-05-15 10:08:29 +0200)
Backend: QtWebEngine 6.5, based on Chromium 108.0.5359.220 (from api)
Qt: 6.5.0

CPython: 3.11.3
PyQt: 6.5.0

sip: no
colorama: no
jinja2: 3.1.2
pygments: 2.15.1
yaml: 6.0
adblock: 0.6.0
objc: no
PyQt6.QtWebEngineCore: 6.5.0
pdf.js: no
sqlite: 3.41.2
QtNetwork SSL: OpenSSL 3.0.8 7 Feb 2023

Style: QFusionStyle
Platform plugin: xcb
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 23.0.3
Platform: Linux-6.3.1-arch2-1-x86_64-with-glibc2.37, 64bit
Linux distribution: Arch Linux (arch)
Frozen: False
Imported from /usr/lib/python3.11/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib/qt6, data path: /usr/share/qt6

Paths:
cache: /home/yasser/.cache/qutebrowser
config: /home/yasser/.config/qutebrowser
data: /home/yasser/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /usr/share/qutebrowser

Autoconfig loaded: yes
Config.py: /home/yasser/.config/qutebrowser/config.py has been loaded
Uptime: 1:49:55

P.S. I will revert to the stable version. I am getting unknown error while getting elements frequently on this version when I try to use hints. EDIT: https://github.com/qutebrowser/qutebrowser/issues/7662

YasserKa avatar May 16 '23 15:05 YasserKa

I reverted back and I was able to login to twitch...

qutebrowser v2.5.4
Git commit: 
Backend: QtWebEngine 5.15.13, based on Chromium 87.0.4280.144
Qt: 5.15.9 (compiled 5.15.8)

CPython: 3.11.3
PyQt: 5.15.9

sip: 6.7.9
colorama: no
jinja2: 3.1.2
pygments: 2.15.1
yaml: 6.0
adblock: 0.6.0
PyQt5.QtWebEngineWidgets: yes
PyQt5.QtWebEngine: 5.15.6
PyQt5.QtWebKitWidgets: no
pdf.js: no
sqlite: 3.41.2
QtNetwork SSL: OpenSSL 3.0.8 7 Feb 2023

Style: QFusionStyle
Platform plugin: xcb
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 23.0.3
Platform: Linux-6.3.1-arch2-1-x86_64-with-glibc2.37, 64bit
Linux distribution: Arch Linux (arch)
Frozen: False
Imported from /usr/lib/python3.11/site-packages/qutebrowser
Using Python from /usr/bin/python3
Qt library executable path: /usr/lib/qt/libexec, data path: /usr/share/qt

Paths:
cache: /home/yasser/.cache/qutebrowser
config: /home/yasser/.config/qutebrowser
data: /home/yasser/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /usr/share/qutebrowser

Autoconfig loaded: yes
Config.py: /home/yasser/.config/qutebrowser/config.py has been loaded
Uptime: 0:00:00

YasserKa avatar May 16 '23 16:05 YasserKa

It has to do with the fact that chrome development tools have been loaded on the page.

wade-welles avatar May 23 '23 04:05 wade-welles

Yeah, I tried to clear my cache for Twitch as it was a way suggested here (using the devtools):

https://github.com/qutebrowser/qutebrowser/discussions/6485

And now, I can't log into Twitch anymore either.

sim590 avatar Aug 13 '23 22:08 sim590

Which user agent are you on? You may be on a old Chrome UA.

ProgramminCat avatar Aug 25 '23 23:08 ProgramminCat

Which user agent are you on?

The default, Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.5.2 Chrome/108.0.5359.220 Safari/537.36. As an update, this still happens with 3.0.0 in a temporary basedir, with or without devtools having been opened.

Xiretza avatar Aug 27 '23 12:08 Xiretza

Bit late, but this problem still exists in 2024.

For me on Arch it was

sudo timedatectl set-timezone Europe/London  
sudo timedatectl set-ntp true

Assuming you've tried to log in already (otherwise skip) make sure to clear all cache and cookies through developer tools

jakub-gawlik avatar Jan 27 '24 10:01 jakub-gawlik

Interesting you are still seeing the issue with chrome dev tools not loaded. I will experiment with QT webengine directly and see if the cause becomes more apparent when directly using that.

I hear webkit2 works right now and I believe QT supports that but I suspect thats too major of a change for Brave to use as a fix.

shehackedyou avatar Feb 21 '24 05:02 shehackedyou

This happens to me as well with default user agent, changed it to 'Chromium 110' and managed to log in

qutebrowser v3.1.0 Backend: QtWebEngine 6.6.2, based on Chromium 112.0.5615.213 (from api) Qt: 6.6.2

imloweffort avatar Feb 26 '24 00:02 imloweffort