Skip to content
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

AssertionError: Bad Login - Login not possible #147

Open
LecJackS opened this issue Aug 10, 2023 · 3 comments
Open

AssertionError: Bad Login - Login not possible #147

LecJackS opened this issue Aug 10, 2023 · 3 comments

Comments

@LecJackS
Copy link

LecJackS commented Aug 10, 2023

Not sure if I'm login correctly or if login screem has changed in recent updates.

When running

from ogame import OGame

UNI = "Servername"
USER = "[email protected]"
PASS = "MyPass1234"

empire = OGame(UNI, USER, PASS)

I get

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
[<ipython-input-7-f369015110c4>](https://localhost:8080/#) in <cell line: 9>()
      7 
      8 
----> 9 empire = OGame(UNI, USER, PASS, language="en")
     10 empire

[/usr/local/lib/python3.10/dist-packages/ogame/__init__.py](https://localhost:8080/#) in __init__(self, universe, username, password, token, user_agent, proxy, language, server_number)
     39 
     40         if token is None:
---> 41             self.login()
     42         else:
     43             self.session.headers.update(

[/usr/local/lib/python3.10/dist-packages/ogame/__init__.py](https://localhost:8080/#) in login(self)
    123             return True
    124         assert response.status_code != 409, 'Resolve the Captcha'
--> 125         assert response.status_code == 201, 'Bad Login'
    126         self.token = response.json()['token']
    127         self.session.headers.update(

AssertionError: Bad Login

When I login manually, sometimes I need to complete this captcha:
image

Is this the reason for the "Bad Login" error? Any way around it?

PD: I'm running this on a colab notebook, in an attempt fo hide my ip.

@sboechat
Copy link

I also have the same problem

1 similar comment
@christianlusardi
Copy link

I also have the same problem

@kaluzap
Copy link

kaluzap commented Nov 25, 2023

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants