Skip to content

Commit f544dea

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 9fc1a08 commit f544dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/by-example/http.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +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':
223+
crate.client.exceptions.ProgrammingError: 404 Client Error: NOT FOUND
224224
...
225225
>>> http_client.close()
226226

0 commit comments

Comments
 (0)