charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
1.02k stars 273 forks source link

[BUG] Stuck at Logging-in #352

Open evox45 opened 1 year ago

evox45 commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

If ran with the -v argument it opens the browser but doesnt go anywhere.

Copy and paste your error

2023-09-14 21:37:34,326 [INFO] Using default request storage 2023-09-14 21:37:34,333 [INFO] Created proxy listening on 127.0.0.1:5316 2023-09-14 21:37:34,334 [INFO] Using undetected_chromedriver 2023-09-14 21:37:35,272 [INFO] patching driver executable C:\Users\Evan\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe 2023-09-14 21:37:35,898 [INFO] Screen size: 1651x1214 2023-09-14 21:37:35,899 [INFO] Device size: 1596x1063 2023-09-14 21:37:35,915 [INFO] [LOGIN] Logging-in...

Screenshots

msrewards

Value of dashboard variable

https://gist.github.com/evox45/615d8763efd06389fd68760ee08e127a

yuuyuu0514 commented 1 year ago

Hey, I have the same problem for 2 days. In my case, after struggling to log in, the error message below will be displayed:

2023-09-14 18:18:31,819 [ERROR] TimeoutException: Message: timeout: Timed out receiving message from renderer: -306.606 (Session info: chrome=117.0.5938.63) Stacktrace: GetHandleVerifier [0x00B8CE43+45171] (No symbol) [0x00B19091] (No symbol) [0x00A0BE1D] (No symbol) [0x009FE1F8] (No symbol) [0x009FE05A] (No symbol) [0x009FCDD2] (No symbol) [0x009FD5DA] (No symbol) [0x00A06EA5] (No symbol) [0x00A13C4A] (No symbol) [0x00A16C56] (No symbol) [0x009FDAFC] (No symbol) [0x00A13B60] (No symbol) [0x00A6DC55] (No symbol) [0x00A5AE46] (No symbol) [0x00A3675E] (No symbol) [0x00A378FD] GetHandleVerifier [0x00E45449+2897529] GetHandleVerifier [0x00E8DBFB+3194411] GetHandleVerifier [0x00E879D1+3169281] GetHandleVerifier [0x00C160C0+606960] (No symbol) [0x00B22E0C] (No symbol) [0x00B1EF98] (No symbol) [0x00B1F0BF] (No symbol) [0x00B117B7] BaseThreadInitThunk [0x771FFCC9+25] RtlGetAppContainerNamedObjectPath [0x77C77B1E+286] RtlGetAppContainerNamedObjectPath [0x77C77AEE+238] Traceback (most recent call last): File "D:\Coding\Microsoft-Rewards-Farmer-master\main.py", line 24, in main executeBot(currentAccount, notifier, args) File "D:\Coding\Microsoft-Rewards-Farmer-master\main.py", line 128, in executeBot accountPointsCounter = Login(desktopBrowser).login() File "D:\Coding\Microsoft-Rewards-Farmer-master\src\login.py", line 19, in login self.webdriver.get("https://login.live.com/") File "c:\users*USERNAME\src\undetected-chromedriver\undetected_chromedriver__init__.py", line 629, in get_wrapped return orig_get(args, *kwargs) File "c:\users*USERNAME\src\undetected-chromedriver\undetected_chromedriver__init__.py", line 665, in get return super().get(url) File "C:\Users*USERNAME\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 354, in get self.execute(Command.GET, {"url": url}) File "C:\Users*USERNAME\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute self.error_handler.check_response(response) File "C:\Users*USERNAME*\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: -306.606 (Session info: chrome=117.0.5938.63) Stacktrace: GetHandleVerifier [0x00B8CE43+45171] (No symbol) [0x00B19091] (No symbol) [0x00A0BE1D] (No symbol) [0x009FE1F8] (No symbol) [0x009FE05A] (No symbol) [0x009FCDD2] (No symbol) [0x009FD5DA] (No symbol) [0x00A06EA5] (No symbol) [0x00A13C4A] (No symbol) [0x00A16C56] (No symbol) [0x009FDAFC] (No symbol) [0x00A13B60] (No symbol) [0x00A6DC55] (No symbol) [0x00A5AE46] (No symbol) [0x00A3675E] (No symbol) [0x00A378FD] GetHandleVerifier [0x00E45449+2897529] GetHandleVerifier [0x00E8DBFB+3194411] GetHandleVerifier [0x00E879D1+3169281] GetHandleVerifier [0x00C160C0+606960] (No symbol) [0x00B22E0C] (No symbol) [0x00B1EF98] (No symbol) [0x00B1F0BF] (No symbol) [0x00B117B7] BaseThreadInitThunk [0x771FFCC9+25] RtlGetAppContainerNamedObjectPath [0x77C77B1E+286] RtlGetAppContainerNamedObjectPath [0x77C77AEE+238]

Note: my username of Windows has been replaced for privacy reasons. I hope this info helps to solve the problem.

klept0 commented 1 year ago

nuke your sessions folder contents and try again - if that resolves the issue please close this

klept0 commented 1 year ago

1) ~kill that screenshot with your email else big brother might feel the need to do their thing~ 2) after clearing the sessions folder give it a reboot and see if it works then 3) proxy or no?

evox45 commented 1 year ago

No Proxy deleted all the stuff in sessions folder, rebooted. Still the same outcome. Thanks for that. Stupid move.

klept0 commented 1 year ago

I assume you can login to the account with any issues on the same connection you are using. If you can and it takes a moment then you might need to increase some timing in the script - which is pretty easy.

evox45 commented 1 year ago

I can yeah. Can you share where I'd increase this time. I'll have to look at it later tonight but maybe you could save me a bit of work. Thanks.

shopbuy11 commented 1 year ago

I too started experiencing this issue today. All worked fine yesterday, but somehow today none of my accounts work. I can log into all of them manually without issue, but the bot is stuck at Logging in and then eventually times out. Deleting the content of Sessions folder and rebooting don't help. Any idea please?

image

shopbuy11 commented 1 year ago

My issue seems identical to the OP. When I disable headless, I can see that it just stays on the Google search screen, instead of going to the MS Rewards site. That's got to be where the problem is. Anyone please?

Natriumpikant commented 1 year ago

Same issue for me.

Using Ubuntu 22.04.

Edit - Session folder is not the problem, i delete it after every execution. Also my Microsoft Account is not locked. Loggin in on another machine works fine.

Its stuck at this place, loading endless:

Stuck

GlitteringReturn commented 1 year ago

nuke your sessions folder contents and try again - if that resolves the issue please close this

Sorry, if I may ask what is the point of the sessions folder then? Why doesn't the bot remove this folder if it is unnecessary?

GlitteringReturn commented 1 year ago

By the way the reason I got this issue where I was stuck logging-in was because my accounts were locked by Microsoft.

evox45 commented 1 year ago

By the way the reason I got this issue where I was stuck logging-in was because my accounts were locked by Microsoft.

Is there any way to unlock it? Also how did you figure out they were locked? I seem to be able to log in normally.

GlitteringReturn commented 1 year ago

By the way the reason I got this issue where I was stuck logging-in was because my accounts were locked by Microsoft.

Is there any way to unlock it? Also how did you figure out they were locked? I seem to be able to log in normally.

I just tried to log in and my account was locked and I unlocked it using my phone number. It seems there must be something wrong with you bot, I would just redownload the bot and/or apply this to your bot: https://github.com/charlesbel/Microsoft-Rewards-Farmer/pull/276.

shopbuy11 commented 1 year ago

Mine started working again today out of the blue, after being stuck for 2 weeks. So maybe it's a M$FT issue...

shopbuy11 commented 1 year ago

Well, it's stuck again today. Guess it will be hit-and-miss from now on. Thanks, Micros**t!

GlitteringReturn commented 1 year ago

Well, it's stuck again today. Guess it will be hit-and-miss from now on. Thanks, Micros**t!

Sorry I cannot help, this issue doesn't happen with me at all, it might be something to do with your region, internet or your bot.

shopbuy11 commented 1 year ago

GlitteringReturn

Thanks. Applying https://github.com/charlesbel/Microsoft-Rewards-Farmer/pull/276 seems to have helped so far for 2 days...

GlitteringReturn commented 1 year ago

GlitteringReturn

Thanks. Applying #276 seems to have helped so far for 2 days...

Wow, I completely forgot to recommend that you add #276, my bad.

shopbuy11 commented 1 year ago

After 2 weeks of smooth sailing, the problem resurfaced today, even with #276 in place... Again, it gets stuck at logging in, even when I do it manually in the browser, by going to https://login.live.com. So it appears to be a MSFT problem, but if I log in from the rewards site, then it works because it adds a bunch of code to the URL. Anyone have any ideas?

image

bruno-lambreht commented 1 year ago

I was having those problems, and I only reboot the router and, lol, it works!

shopbuy11 commented 1 year ago

19 of my 20 accounts got banned today. They are stepping things up or figured out a way to detect this bot. No point doing this any more. Party is over :(

GlitteringReturn commented 1 year ago

19 of my 20 accounts got banned today. They are stepping things up or figured out a way to detect this bot. No point doing this any more. Party is over :(

Where you redeeming only one gift per day? Maybe, you were using too many accounts?

shopbuy11 commented 1 year ago

No, I was saving up my points on each account before redeeming. So usually redeem once a week. Too bad coz several of them had 20K+ points....

GlitteringReturn commented 1 year ago

No, I was saving up my points on each account before redeeming. So usually redeem once a week. Too bad coz several of them had 20K+ points....

Redeem more regularly once per day, so that you do not accumulate too many points before getting banned. That is BS from Microsoft.

Beusts commented 10 months ago

same here