Yudaotor / EsportsHelper

通过selenium模拟浏览器来自动观看电竞比赛获取电竞典藏罐,当没有比赛时智能休眠.(Automatically watch e-sports games through undetected_chromedriver to farm esports capsule, when there is no match intelligent sleep.)
MIT License
196 stars 21 forks source link

ERROR: Getting to reward website failed, retrying... #107

Open Sato-Isolated opened 8 months ago

Sato-Isolated commented 8 months ago

I get this message every time

League: LEC Viewers: 58179 Definition: 160p Title: G2 VS. RGE 0 - 0 (1/BESTOF 1) 2024-01-15 17:59:27,225 INFO: Next check at: 01-15 18:07:27 2024-01-15 17:59:27,225 INFO: ================================================== 2024-01-15 18:07:28,247 INFO: Start checking... 2024-01-15 18:07:28,714 INFO: Checking live broadcasts... 2024-01-15 18:07:29,127 INFO: Checking drops number... 2024-01-15 18:08:35,366 INFO: rewardError-Debug screenshot successful. 2024-01-15 18:08:51,228 ERROR: Getting to reward website failed, retrying... 2024-01-15 18:08:51,229 ERROR: ++++++++++++++++++++++++++++++++++++++++++++++++++ Traceback (most recent call last): File "C:\Users\ismys\Documents\GitHub\EsportsHelper\EsportsHelper\Utils.py", line 480, in checkRewardPage wait.until(ec.presence_of_element_located( File "C:\Users\ismys\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 95, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:

image

[edit] ok I get it is that it disconnects me from the site but it only does that when I'm in with the Headless option : True

Yudaotor commented 8 months ago

show the debug pic

Sato-Isolated commented 8 months ago

I'm sorry I don't have the screenshot anymore but it was the login page for the riot games account.

Yudaotor commented 8 months ago

I'm sorry I don't have the screenshot anymore but it was the login page for the riot games account.

sounds like u didnt login successfully using cookies

Sato-Isolated commented 8 months ago

it's quite strange because the first hour I was well connected and then it disconnects me and this happens when I'm with the Headless option on true.

Neblinio commented 7 months ago

I have the same issue. Let me know if you need any logs or info error

Yudaotor commented 7 months ago

I have the same issue. Let me know if you need any logs or info error

This is a display bug. In fact, you did not log in successfully.

Neblinio commented 7 months ago

Is there any solution? I'm running headless on Ubuntu, and since Riot implemented captcha my last possible way to login has been the cookies method. Recently, it has started failing too.

Yudaotor commented 7 months ago

Is there any solution? I'm running headless on Ubuntu, and since Riot implemented captcha my last possible way to login has been the cookies method. Recently, it has started failing too.

reset cookies method maybe works

NaniDaFuck commented 7 months ago

same happens with me

what is the right method to login successfully with cookies?

Neblinio commented 7 months ago

I updated to the new EsportsHelper V2.3.2 version, and tried to completely reset cookies by deleting my "userDataDir". Then I installed xfce + google chrome and successfully login by manually resolving captcha + 2FA, and then grabbed the fresh new userDataDir (called "Default"). It didn't work. After a few seconds the process gets killed.

image

I also tried with an alt account that has no 2FA enabled, and I'm presented with the "please solve the captcha manually" (I'm running a headless ubuntu and couldn't solve it to test, but it should have worked fine)

Yudaotor commented 7 months ago

I updated to the new EsportsHelper V2.3.2 version, and tried to completely reset cookies by deleting my "userDataDir". Then I installed xfce + google chrome and successfully login by manually resolving captcha + 2FA, and then grabbed the fresh new userDataDir (called "Default"). It didn't work. After a few seconds the process gets killed.

image

I also tried with an alt account that has no 2FA enabled, and I'm presented with the "please solve the captcha manually" (I'm running a headless ubuntu and couldn't solve it to test, but it should have worked fine)

when u login manually are u select "stay signed in"?

Yudaotor commented 7 months ago

same happens with me

what is the right method to login successfully with cookies?

login to your account using a local chrome with selecting "stay signed in ", and configure the userdata path.

Neblinio commented 7 months ago

when u login manually are u select "stay signed in"?

Yes I did.

By the way. I've been noticing something weird with lolesports website login process for the last year or longer. When I visit lolesports with my main Windows PC to watch games, sometimes I see a login button even though I always check "stay signed in". When I click it, I get instantly logged in without being asked for user & pass (my browser doesn't save any passwords, so cookies are being used). It happens a few times, and for example the next day you suddenly get remembered by lolesports, and are automatically logged in when you visit. And it stays like that for weeks or months.

Maybe this affects EsportsHelper's cookie login method? Just now I double checked my manual Chrome login from yesterday on Ubuntu, and when I visited lolesports it had the login button... but when I clicked it, it remembered me (using cookies, because my browser has 0 saved passwords).