charlesbel / Microsoft-Rewards-Farmer

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

[BUG] Cannot Log in #162

Closed AlexyGalaxy closed 1 year ago

AlexyGalaxy commented 1 year ago

I am not sure what the issue is or if I am the only one getting this error.

Start script. Goes to log in.

Login Error

Does not enter email or password just gives error.

AlexyGalaxy commented 1 year ago

Fixed the error. Updated code is on my github. https://github.com/AlexyGalaxy/Microsoft-Rewards-Farmer

DoShhPlease commented 1 year ago

Fixed the error. Updated code is on my github. https://github.com/AlexyGalaxy/Microsoft-Rewards-Farmer

Great job, works almost flawlessly, thanks a lot!

One small "issue", unfortunately since I'm a beginner in python I can't really debug a program such as this, i got a bunch of errors before it actually completed "More promotions". If you need more info somehow then let me know - I'm happy to provide it. Screenshot 2023-03-06 181232

AlexyGalaxy commented 1 year ago

first you need to set up your err logger, instructions are in the README.

Disable headless mode and watch the script run. Once you find what is not running correctly take a picture of the browser window and post it here.

DoShhPlease commented 1 year ago

Well.. I ran it again with another account with the same settings just to confirm that the errors arent isolated to one account or first run of the python file for any reason and indeed the same 12 errors occured. So, I did as you said: disabling headless mode and setting up error logger then running it again. No errors this time, across both accounts. Seems like something about doing at least one of those two fixed the errors from occuring? Not sure if any of that info can help your debugging but thanks anyway. :)

AlexyGalaxy commented 1 year ago

So it ran without errors?

DoShhPlease commented 1 year ago

Indeed it did, new plot twist though. Ran again and we got the error to replicate with the 2 settings changed. There's not much to screenshot, all i see is that firstly, it would open the more promotions quiz page but not answer any of the questions, then it would close that page and try again (re-open more promotions quiz page but not answer the question, then close the tab). after some iterations of that, it reloads the main microsoft rewards dashboard page over and over, while simultaneously printing the above shown errors after each reload (as in the same reload as pressing the F5 key)

AlexyGalaxy commented 1 year ago

Take a screenshot of the pannels that the script is failing to complete then I can troubleshoot a solution.

Keeboy99 commented 1 year ago

Yo you know why its stuck at checking login on bing? also when I turned off headless I saw it just kept refreshing

AlexyGalaxy commented 1 year ago

Please make sure you have the current version of the MF script. You may have an out of date version that fixed this issue.

Yes the script in ran in headless mode.

I recommend turning this off by setting HEADLESSOFF = True or Comment out line 65 and 66 by placing a # in front of each line.

Currently bing is having server issues and the script is less likely to run into issues this way.