You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
I am still getting the Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version. in my code, even when I am trying to use the captcha parameter.
pythos-aternos version is 2.1.3
python version is 3.9.15
here is my code
frompython_aternosimportClientclassAternos:
def__init__(self, user, password):
self.user=userself.password=passwordself.login_status=Falsedeflogin(self):
try:
self.at_client=Client.from_credentials(self.user, self.password, captcha={
'provider': 'capmonster',
'clientKey': '<MY_CAPMONSTER_KEY>'
})
self.login_status=TruereturnTrueexceptExceptionase:
return [False, e]
defserver_list(self):
ifnotself.login_status:
return'Bot is not logged in Aternos, please use /login first'returnself.at_client.list_servers()
TEST_USER='<MY_ATERNOS_USERNAME>'TEST_PASSWORD='<MY_ATERNOS_PASSWORD>'if__name__=='__main__':
at=Aternos(TEST_USER, TEST_PASSWORD)
print(at.login())
I did give it a try as well, but still no luck.
All I did was,
# Importfrompython_aternosimportClient# Create objectaternos=Client()
aternos.atconn.session.captcha= {
'provider': '2captcha',
'api_key': 'apikeyhere',
}
# Log in# with username and passwordaternos.login('usernamehere', 'passwordhere')
# Get servers listservs=aternos.list_servers()
# Get the first servermyserv=servs[0]
# Startmyserv.start()
The response:
$ python at.py
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.
Hey @DarkCat09!
It didn't even asked for any captcha, in fact the above code is invalid as .from_credentials is not a attribute for the class Client apprently. Regardless the .login() attribute works and I am able to login.
Activity
DarkCat09 commentedon Dec 30, 2022
Thanks for reporting! I'll try to fix it.
[-]CloudflareChallengeError[/-][+]CloudflareChallengeError with valid API key[/+]uhhrin commentedon Jan 10, 2023
Just checking up, Any updates?
DarkCat09 commentedon Jun 29, 2023
@nub-rin,
I'm so sorry for the long waiting.
I've noticed that the problem is in re-instantiating
CloudScrapersession object in atconnect module.Expect the bugfix tomorrow.
atconnect: anticaptcha API keys bugfix (#62)
DarkCat09 commentedon Jun 30, 2023
@nub-rin, @Aeron-Emory,
please, update to the latest v3.0.1:
And check if API key works.
uhhrin commentedon Jun 30, 2023
Alright!, I'll give it a try right now, and let you know if it works or not. ^^
Aeron-Emory commentedon Jul 1, 2023
I did give it a try as well, but still no luck.
All I did was,
The response:
$ python at.py cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.uhhrin commentedon Jul 8, 2023
Hey @DarkCat09!
It didn't even asked for any captcha, in fact the above code is invalid as .from_credentials is not a attribute for the class Client apprently. Regardless the .login() attribute works and I am able to login.
Thanks!