retries for failed API requests

Open
#41 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

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
python
Domain
api

Research direction

Start with pydrive2/auth.py around the initial client creation referenced in the issue, then trace how googleapiclient is used for Drive operations. Compare the requested behavior with the linked Drive API and googleapiclient retry guidance; done means failed Drive requests and initial discovery creation retry according to those recommendations.

Written by the indexing model from the issue text.

Description

enhancement priority-p2

Currently, pydrive2 uses googleapiclient for all Drive API operations, but doesn't retry any failed requests. However, the Drive API recommends retries with exponential backoff for many errors, and googleapiclient supports retries for all requests.

Would it be possible to add retry behavior as per the Drive API recommendations?

(Additionally, it'd be great to add this for the initial client creation, as the discovery service can also throw 500s.)

Thanks!

Dominant language
Python
Stars
671
Forks
76
Avg merge
17h 55m
Merged PRs (30d)
46

Getting set up

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 iterative/PyDrive2

All issues in iterative/PyDrive2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.