Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug 1 #379

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
debug 5
  • Loading branch information
JerrySentry committed Oct 3, 2024
commit ecd330ba71ab9b6b4bc5b79ad439d84c456acc24
5 changes: 4 additions & 1 deletion shared/torngit/github.py
Original file line number Diff line number Diff line change
@@ -764,7 +764,7 @@ async def make_http_call(
statuses_to_retry=[502, 503, 504],
**args,
) -> Response:
print("ALRIGHT 3")
print("ALRIGHT 4")
_headers = {
"Accept": "application/json",
"User-Agent": os.getenv("USER_AGENT", "Default"),
@@ -813,6 +813,9 @@ async def make_http_call(
try:
with metrics.timer(f"{METRICS_PREFIX}.api.run") as timer:
res = await client.request(method, url, **kwargs)

print("what is res", res)

if current_retry > 1:
# count retries without getting a url
self.count_and_get_url_template(url_name="make_http_call_retry")
Loading
Oops, something went wrong.