DarkCat09 / python-aternos

[UNMAINTAINED] Unofficial Aternos API written in Python
https://pypi.org/project/python-aternos/
Apache License 2.0
92 stars 13 forks source link

ServerStartError #79

Open GiveMeFox opened 1 year ago

GiveMeFox commented 1 year ago
Traceback (most recent call last):
  File "/home/sadperson/tests/aternos/main.py", line 8, in <module>
    server.start()
  File "/home/sadperson/.local/lib/python3.11/site-packages/python_aternos/atserver.py", line 161, in start
    raise ServerStartError(error)
python_aternos.aterrors.ServerStartError: ('Sorry, an error occured!', 'Unable to start server, code: Sorry, an error occured!')
Supslike commented 1 year ago

you might have to enable the eula prompt first, I fixed mine by starting the server in the aternos website and accepted eula prompt. This happens when its a new server

DarkCat09 commented 1 year ago

you might have to enable the eula prompt first, I fixed mine by starting the server in the aternos website and accepted eula prompt. This happens when its a new server

@Supslike, oh, thanks, I'll check it and fix EULA auto-accepting.

@GiveMeFox, execute server.eula() before starting.

GiveMeFox commented 1 year ago

weird my account got disabled but i think i run this only 3 times is it because i didnt accept the eula?

aternos.login('username', 'pass')
servers = aternos.account.list_servers()
server = servers[0]
server.start()