kqdz / hcaptcha-ai-solver

A powerful free hcaptcha ai solver.
MIT License
5 stars 1 forks source link

Got `KeyError` when running function `get_captcha2` #1

Open GamerNoTitle opened 1 month ago

GamerNoTitle commented 1 month ago

Hello, im using this repo to try to bypass the hcaptcha. However, when im using it, i got a KeyError when running get_captcha2 Originally, I used the Riot Games' siteKey 019f1553-3845-481c-a6f5-5a60ccf6d830 with host authenticate.riotgames.com and got the error. After that, i tried the siteKey and host of discord.com, which is written in main.py, but got the same error. I tried to print the self.captcha1 to figure out what's in the self.captcha1, and the following is the log.

19:53:38 INF  Got Site Config. (200)
{'features': {'a11y_challenge': True}, 'c': {'type': 'hsw', 'req': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmIjowLCJzIjoyLCJ0IjoidyIsImQiOiI5eUdycWdybWpkSEFScURPZytiZUFXbGJsVHl3VHUzOCsycGxtMGhEQ2RZYis0bDhRZUdpdWR6cFJEZDlLOTErcE5QZjR2Z1JWZDk2K2ZQYkIvdk1rRU5Ec3pESWNBcFZSbHBHT0xucmliUExLOGdZQ21ldytzcURqQjcraVU1eS9jZ2xjUjMzcmlrU1RSUkUxMDN5UkM5cXNMamtZMFJUTVhTUGtnNW5ON0Zlc0FocktLVlRFSWU3YTR6Szg2Mzc3L1ozWGJKYU1CQ3RtSmlGd2JOcDVrK05LK292MzVNLzR2M2I5eUREUGlMdFZOVFg5YkQzYWI2bkZ3Mnh2bGc9dzdSZS9yZmN2Ukd5Wm0rNSIsImwiOiJodHRwczovL25ld2Fzc2V0cy5oY2FwdGNoYS5jb20vYy85YjBhODFmOGRjOTc4NmNiZWQwOGMzOWRjMmVkNjZkMjg5ZTcyNTg1OGQ5YWZkMGM3ODdmYjgxOGNmZjlmYWUzIiwiaSI6InNoYTI1Ni1VYmpYc3dZT01OUlliWDZETTNoY1RPZEJqOVNjZHBycmZOQWZFTUVoZ1RBPSIsImUiOjE3MjE4MjIyNzAsIm4iOiJoc3ciLCJjIjoxMDAwfQ.MJr2ZF37lu0XICm2dFab9jI5wym_h958x1M6fJ6K3Ss'}, 'pass': True}
19:53:40 INF  Got Captcha Number 1. (200)
captcha1: {'c': {'type': 'hsw', 'req': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmIjowLCJzIjoyLCJ0IjoidyIsImQiOiJBUmtYY2FudlJZdnRsTjVLMkVaK2ZXTFlUeWV0NElGdU1yVUVXaGRNK2wyM1NHYUhvTFlmS0dPc1RtVVllcVM4LzA2VnVtS3pxbkFCaGlzYUdUa25FZUhGbTEzeFdjNStwQ3VPY25qbCtJcVhwcnRkbkRtWGNIekdKS2tURDN1b0VxRkNwYVFZclZObkx3dTRBMUpJVGp3aFNyV0FYS3JtUXUxRVRqemtzSXRiVUZXWkNRcTk4WHZpTmVtTXJYT1dneHdabXdKaFBRZklZTUFBYzJxMFluMUQybDlBQy9yNXhLTjJWVUpZSWRqUDdpbGdIazhKOVpCRGsxQUd1Unc9VUpVVGFKb3cwK0ppSHVCWSIsImwiOiJodHRwczovL25ld2Fzc2V0cy5oY2FwdGNoYS5jb20vYy85YjBhODFmOGRjOTc4NmNiZWQwOGMzOWRjMmVkNjZkMjg5ZTcyNTg1OGQ5YWZkMGM3ODdmYjgxOGNmZjlmYWUzIiwiaSI6InNoYTI1Ni1VYmpYc3dZT01OUlliWDZETTNoY1RPZEJqOVNjZHBycmZOQWZFTUVoZ1RBPSIsImUiOjE3MjE4MjIyNzIsIm4iOiJoc3ciLCJjIjoxMDAwfQ.GxBHHUhZ0Ecd6a4F2zLHITNnJy__kLoSfPbNGyN-C6Y'}, 'success': False, 'error-codes': []}
Traceback (most recent call last):
  File "F:\Git\Riot-Auth\hcaptcha-ai-solver\main.py", line 11, in <module>
    main()
  File "F:\Git\Riot-Auth\hcaptcha-ai-solver\main.py", line 5, in main
    Solver(
  File "F:\Git\Riot-Auth\hcaptcha-ai-solver\modules\solver.py", line 57, in __init__
    self.captcha2 = self.get_captcha2()
                    ^^^^^^^^^^^^^^^^^^^
  File "F:\Git\Riot-Auth\hcaptcha-ai-solver\modules\solver.py", line 106, in get_captcha2
    'old_ekey'  : self.captcha1['key'],
                  ~~~~~~~~~~~~~^^^^^^^
KeyError: 'key'

Is there any way to solve this? Or is this repo is not finished yet? Thank you for your attention and reply!

GamerNoTitle commented 1 month ago

Formatted document:

AG-597 commented 1 month ago

the issue is with your proxies or you are being ratelimited by hcaptcha

kqdz commented 1 month ago

the issue is with your proxies or you are being ratelimited by hcaptcha

thanks you by answering the question !