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

SSLCertVerificationError #107

Open
XaniloM opened this issue Dec 30, 2024 · 0 comments
Open

SSLCertVerificationError #107

XaniloM opened this issue Dec 30, 2024 · 0 comments

Comments

@XaniloM
Copy link

XaniloM commented Dec 30, 2024

Hi, i'm getting SSLCertVerificationError in job = client.createTask(task) execution. How can i fix this? I can't find a verify=False option for apply in the requests package.

Traceback (most recent call last):
File "<pyshell#3>", line 1, in
job = client.createTask(task)
File "C:\Python312\Lib\site-packages\python_anticaptcha\base.py", line 126, in createTask
response = self.session.post(
File "C:\Python312\Lib\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "C:\Python312\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python312\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Python312\Lib\site-packages\requests\adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.anti-captcha.com', port=443): Max retries exceeded with url: /createTask (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)')))

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

1 participant