◐ Shell
reader mode source ↗
Skip to content
Open
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
10 changes: 7 additions & 3 deletions gitlab/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Gitlab:
order_by: Set order_by globally
user_agent: A custom user agent to use for making HTTP requests.
retry_transient_errors: Whether to retry after 500, 502, 503, 504
or 52x responses. Defaults to False.
keep_base_url: keep user-provided base URL for pagination if it
differs from response headers

Expand Down Expand Up @@ -665,7 +665,7 @@ def http_request(
obey_rate_limit: Whether to obey 429 Too Many Request
responses. Defaults to True.
retry_transient_errors: Whether to retry after 500, 502, 503, 504
or 52x responses. Defaults to False.
max_retries: Max retries after 429 or transient errors,
set to -1 to retry forever. Defaults to 10.
extra_headers: Add and override HTTP headers for the request.
Expand Down Expand Up @@ -737,7 +737,11 @@ def http_request(
stream=streamed,
**opts,
)
except (requests.ConnectionError, requests.exceptions.ChunkedEncodingError):
if retry.handle_retry():
continue
raise
Expand Down
Loading
Toggle all file notes Toggle all file annotations