-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authenticating without saved credentials results in account lockout #453
Comments
Jeez, sorry that's happening! Unfortunately, no ideas from me, and probably no time to debug for around a week. I hope the issue is immediately obvious to someone else so we can do a quick bugfix release! |
I think we know what's happening, it's a bug that we need to fix but not as bad as it sounds.... I think a while ago we introduced this "eager login" in the top level After doing this N times, EDL warns us that are going to get our account locked out but the thing is we haven't told EDL who we are, fortunately this bug won't result in any account being locked by username. We need to fix it tho, as won't want EDL to block us by IP or if we are users that just want to use earthaccess for searching... that's a valid use too. |
It seems like some kind of lockout IS happening. Here's the (mostly unhelpful) list of error messages being reported out before it finally fails with an AuthError:
|
This is odd, I wonder why is not picking up the write credentials, do you have the code line of code where this is happening. We'll have to do something in |
Sorry, I don't (I was clearing notebook outputs). I can try to recreate tomorrow; for now I just wanted to note that it does seem like somehow an actual account lock is happening even once I finally do get to login. |
After some more debugging with @betolink, we determined the culprit was a bad local .netrc file that had somehow been populated with an entire page of the correct endpoint and username but password=None, which then inadvertently caused the bad login attempts even though the file was never intentionally created. The origins of the file are a mystery still, and its only contents were the bad edl logins... :tl;dr: If you get repeated authentication failure errors before even attempting to login, check for a rogue .netrc file. |
Awesome job figuring it out, all! |
On a fresh pip install of 0.8.2 in a new mamba environment, I'm not getting prompted for authentication when it's needed:
gives:
without ever prompting for credentials (I do not have environment or .netrc credentials set).
Subsequently calling
earthaccess.login()
results in the error repeated a few times until the "You have x more attempt(s) before being locked out for 10 minutes. You will not be able to reset your password while locked." piece is added to the error message, culminating in the account being locked. Only after 6+ error messages am I prompted to enter my username and password, by which point I obviously have to wait 10 minutes because my account is locked. Any idea why the prompting is not happening when credentials are not found, BEFORE an attempt is made at authentication? I've had this happen a few times on fresh installs over the past few weeks...The text was updated successfully, but these errors were encountered: