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
Describe the bug
In Argilla version 2+, httpx.Client is created by rg.Argilla class. However, with verify=False is added, still get Error ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)
After investigation, verify parameter is not passed to httpx.Client through Argilla class ( from v2.2.0), both verify=False and verify='some cert path' fail.
from argilla._api._http._client import create_http_client
client = create_http_client(api_url=<argilla_service_https_url>, api_key=<api_key>, verify=False)
print(client._transport._pool._ssl_context.verify_mode)
output 2
Problem is from line
transport=httpx.HTTPTransport(retries=retries)
in create_http_client
After comment this line or add verify=client_args.pop("verify", True) into httpx.HTTPTransport, output of print(client._transport._pool._ssl_context.verify_mode) turns to 0
Expected behavior
Connection to https url success with rg.Argilla(..., verify=False)
Environment:
Argilla Version 2.2.0:
ElasticSearch Version 8.5.3:
The text was updated successfully, but these errors were encountered:
Tested Argilla version 2.1.0 and verify=False works fine.
xiajing10
changed the title
[BUG-python/deployment] verify=False parameter is not passed to httpx.Client through Argilla class (v2)
[BUG-python/deployment] verify=False parameter is not passed to httpx.Client through Argilla class (v2.2.0)
Sep 30, 2024
xiajing10
changed the title
[BUG-python/deployment] verify=False parameter is not passed to httpx.Client through Argilla class (v2.2.0)
[BUG-python/deployment] verify=False parameter is not passed to httpx.Client through Argilla class ( from v2.2.0)
Nov 6, 2024
xiajing10
changed the title
[BUG-python/deployment] verify=False parameter is not passed to httpx.Client through Argilla class ( from v2.2.0)
[BUG-python/deployment] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
Nov 6, 2024
Tested Argilla version 2.1.0 and verify=False works fine.
Any update on this issue? It still fails in any version after 2.2.0. I'm blocked because I cannot use Dataset.progress function which exists after v2.2.0.
It is just one line update in code, I can create a pull request if that is okay?
Describe the bug
In Argilla version 2+, httpx.Client is created by rg.Argilla class. However, with
verify=False
is added, still get ErrorConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)
After investigation, verify parameter is not passed to httpx.Client through Argilla class ( from v2.2.0), both verify=False and verify='some cert path' fail.
Stacktrace and Code to create the bug
Tried to test with create_http_client function
output
2
Problem is from line
in create_http_client
After comment this line or add
verify=client_args.pop("verify", True)
into httpx.HTTPTransport, output ofprint(client._transport._pool._ssl_context.verify_mode)
turns to0
Expected behavior
Connection to https url success with
rg.Argilla(..., verify=False)
Environment:
The text was updated successfully, but these errors were encountered: