PcgPlayBot / PCG-play-bot

A bot to play Twitch Pokemon Community Game for you
Apache License 2.0
1 stars 0 forks source link

Twitch's "Browser Not Supported" error message prevents logging in. #2

Open TheNegativeIon opened 3 weeks ago

TheNegativeIon commented 3 weeks ago

Whenever I try to log into Twitch through the bot's pop-up window, it displays this error message:

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

It doesn't send me a verification code anymore and clicking the Log In button multiple times doesn't seem to do anything. I've tried a clean reinstall, Running as Administrator, messing around with the bot's settings and still nothing. It used to work just fine until now. Is anyone else having this issue? Is there a way around it?

I'm on Windows 10 if that's important.

PcgPlayBot commented 2 weeks ago

Still working on my side. My best guess would be that your Chrome is outdated, since it uses Chrome based navigation to connect to Twitch. Try to update your Chrome to the last version then try again. Tell me if it works.

TheNegativeIon commented 2 weeks ago

I updated my Chrome web browser from 130.0.6723.92 to 130.0.6723.117, which is the current version at the time of this writing. I also tried setting Chrome to my default browser in my Windows settings. The Chrome browser itself is able to play streams and videos just fine, but I'm still not able to log in through the bot with the same error message.

Now when logging in through Chrome, the message does pop up once when logging in, but I can still just click the button again and it'll work fine. This doesn't seem to be the case when logging in through the bot. I clicked the Log In button multiple times, but to no avail.

Is there maybe a cookie that I need to delete? Maybe something in the bot's files I can mess with?

PcgPlayBot commented 1 week ago

You can check under the folder C:\Users\<your_user>\AppData\Local\python\QtWebEngine\Default to see if there are any cookies you can delete. However, this probably won't solve the issue since the bot automatically deletes cookies when there is a failed login attempt. I would also recommend clearing your Chrome cookies, especially since you're encountering the "unsupported browser" warning there as well. Additionally, please try disabling any browser extensions, as some of them can interfere with page rendering.

To be extra sure, I've uploaded a new release with updated dependencies. You should download and try this new version to see if it solves the issue.