Skip to content

Commit ea0ca46

Browse files
committed
Switch to gargle::request_retry()
Relates to #380. This is only "relates" and not "closes" because #380 shows that many retry-able errors with Drive will be a 403 (with specific `reasons`), which are not among the retry-able code currently built-in to `gargle::request_retry()`. But at least we'll retry for 429 now.
1 parent a1216a5 commit ea0ca46

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# googledrive (development version)
22

3+
* All requests now route through `gargle::request_retry()` (#380).
4+
35
* `drive_scopes()` is a new function to access scopes used with the Drive API.
46
When called without arguments, `drive_scopes()` returns a named vector scopes,
57
where the names are the associated short aliases. `drive_scopes()` can also

R/request_make.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#' @export
3131
#' @family low-level API functions
3232
request_make <- function(x, ...) {
33-
gargle::request_make(x, ..., user_agent = drive_ua())
33+
gargle::request_retry(x, ..., user_agent = drive_ua())
3434
}
3535

3636
#' @rdname request_make

0 commit comments

Comments
 (0)