diff --git a/src/utils/requests.jl b/src/utils/requests.jl index f3c0b23..c83da08 100644 --- a/src/utils/requests.jl +++ b/src/utils/requests.jl @@ -56,9 +56,9 @@ function github_request(api::GitHubAPI, request_method, endpoint; _headers = convert(Dict{String, String}, headers) !haskey(_headers, "User-Agent") && (_headers["User-Agent"] = "GitHub-jl") if request_method == HTTP.get - r = request_method(merge(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false) + r = request_method(merge(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false, idle_timeout=20) else - r = request_method(string(api_endpoint), _headers, JSON.json(params), redirect = allowredirects, status_exception = false) + r = request_method(string(api_endpoint), _headers, JSON.json(params), redirect = allowredirects, status_exception = false, idle_timeout=20) end handle_error && handle_response_error(r) return r