Skip to content

Commit 1ce9413

Browse files
committed
CI: Fix 502 Server Error: Bad Gateway errors for error path test case
For evaluating an error path of the code base, when connecting to non-CrateDB servers, a connection to httpbin.org was made. Apparently, they brought rate limiting in place, so the job would occasionally fail when running on a larger test matrix.
1 parent cfd24c8 commit 1ce9413

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
@@ -211,11 +211,11 @@ an exception is raised when the timeout is reached::
211211

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

214-
>>> http_client = HttpClient(["https://httpbin.org/html"])
214+
>>> http_client = HttpClient(["https://example.org/"])
215215
>>> http_client.server_infos(http_client._get_server())
216216
Traceback (most recent call last):
217217
...
218-
crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=utf-8':
218+
crate.client.exceptions.ProgrammingError: Invalid server response of content-type 'text/html; charset=UTF-8':
219219
...
220220
>>> http_client.close()
221221

0 commit comments

Comments
 (0)