Skip to content

Commit f4af761

Browse files
committed
CI: Fix HTTP certificate error when requesting example.org from GHA
ConnectionError: Server not available, exception: HTTPSConnectionPool(host='example.org', port=443): Max retries exceeded with url: Caused by SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1081)
1 parent 71f28c1 commit f4af761

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/by-example/http.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,11 @@ please use the ``urllib3.Timeout`` object like:
216216

217217
When connecting to non-CrateDB servers, the HttpClient will raise a ConnectionError like this:
218218

219-
>>> http_client = HttpClient(["https://example.org/"])
219+
>>> http_client = HttpClient(["https://httpbin.org/html"])
220220
>>> http_client.server_infos(http_client._get_server())
221221
Traceback (most recent call last):
222222
...
223-
crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html':
224-
...
223+
crate.client.exceptions.ProgrammingError: 404 Client Error: NOT FOUND
225224
>>> http_client.close()
226225

227226
When using the ``error_trace`` kwarg a full traceback of the server exception

0 commit comments

Comments
 (0)