mega.py icon indicating copy to clipboard operation
mega.py copied to clipboard

mega.login hangs

Open reisenmachtfreude opened this issue 2 years ago • 2 comments

At the moment, I've the problem that my code hangs at the line mega.login(...) Since the same code worked yesterday, I think currently there is an issue with the mega API.

However, It would be nice if mega.py throws an exception after a defined time out e.g. in seconds

If I CTRL+C the stack trace is the following

...
  File "/home/user/.local/lib/python3.9/site-packages/mega/mega.py", line 46, in login
    self._login_user(email, password)
  File "/home/user/.local/lib/python3.9/site-packages/mega/mega.py", line 73, in _login_user
    resp = self._api_request({'a': 'us', 'user': email, 'uh': user_hash})
  File "/home/user/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 293, in wrapped_f
    return self.call(f, *args, **kw)
  File "/home/user/.local/lib/python3.9/site-packages/tenacity/__init__.py", line 369, in call
    self.sleep(do)

reisenmachtfreude avatar Dec 24 '21 10:12 reisenmachtfreude

same issue The only thing that helps is changing your account

laisers avatar Apr 20 '22 20:04 laisers

Facing the same issue in heroku. In my local too without vpn.. any help regarding this. It just wouldn't login

Ajurahul avatar Aug 20 '22 01:08 Ajurahul