Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add retries and timeout options to API calls

Open
#185 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
openapi, python
Domain
api

Research direction

Start by tracing GhApi and how it makes API calls, then identify where shared defaults can be applied. Define and verify retries, timeout, and optional retry-wait behavior for all calls, including the documented default retry count and exponential backoff expectation.

Written by the indexing model from the issue text.

Description

Add to all the API calls the retries and timeout options to manage the error responses. Consider a retry-wait option to manage retry speed.

retries - number of times to try the request before failing (default=1)
timeout - time to wait before interpreting the request as failed
retry-wait - the base time to wait between tries for exponential backoff

Note: retries should probably be tries but the parameter name retries is in too wide use to fight against.

It would be useful if these options were added to GhApi as defaults for all API calls made.

Dominant language
Python
Stars
687
Forks
69
Avg merge
1m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/ghapi

All issues in AnswerDotAI/ghapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.