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

Getting server domain/address/subdomain doesn't work #104

Open pythoncat1 opened 10 months ago

pythoncat1 commented 10 months ago

When trying to access atserver.domain, atserver.subdomain, or atserver.address this error happens:

Traceback (most recent call last):
  File "c:\Users\pcat1\Programs\aternos\start.py", line 10, in <module>
    print(srvs[1].subdomain)
          ^^^^^^^^^^^^^^^^^
  File "C:\Users\pcat1\AppData\Roaming\Python\Python311\site-packages\python_aternos\atserver.py", line 277, in subdomain
    atdomain = self.domain
               ^^^^^^^^^^^
  File "C:\Users\pcat1\AppData\Roaming\Python\Python311\site-packages\python_aternos\atserver.py", line 311, in domain
    return self._info['ip']
           ~~~~~~~~~~^^^^^^
KeyError: 'ip'
mqopi commented 9 months ago

same

broseraf228 commented 9 months ago

I have the same problem but atserver._info is empty(equal {})

fedehc commented 7 months ago

Same here.

pythoncat1 commented 7 months ago

Same here.

I recommend not using this, my aternos account recently got banned due to this.