We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0379dc7 commit 77faa28Copy full SHA for 77faa28
1 file changed
docs/by-example/http.rst
@@ -216,11 +216,12 @@ please use the ``urllib3.Timeout`` object like:
216
217
When connecting to non-CrateDB servers, the HttpClient will raise a ConnectionError like this:
218
219
- >>> http_client = HttpClient(["https://httpbin.org/html"])
+ >>> http_client = HttpClient(["https://example.org/"])
220
>>> http_client.server_infos(http_client._get_server())
221
Traceback (most recent call last):
222
...
223
- crate.client.exceptions.ProgrammingError: 404 Client Error: NOT FOUND
+ crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html':
224
+ ...
225
>>> http_client.close()
226
227
When using the ``error_trace`` kwarg a full traceback of the server exception
0 commit comments