Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

replace httr::GET() with httr::RETRY() #24

Merged
merged 1 commit into from
Apr 20, 2020
Merged

replace httr::GET() with httr::RETRY() #24

merged 1 commit into from
Apr 20, 2020

Conversation

annnvv
Copy link
Contributor

@annnvv annnvv commented Apr 19, 2020

Thanks for this awesome project!

In this PR, I'd like to propose swapping out calls to httr::GET() etc. with httr::RETRY(). This will make the package more resilient to transient problems like brief network outages or periods where the service(s) it hits are overwhelmed. In my experience, using retry logic almost always improves the user experience with HTTP clients.

I'm working on chircollab/chircollab20#1 as part of Chicago R Collab, an R 'unconference' in Chicago.

@khufkens khufkens merged commit 11e7139 into ropensci-archive:master Apr 20, 2020
@khufkens
Copy link
Collaborator

Hi Anna,

seems like a good fix for server instability issues. Didn't know the function existed. Seems like the default try value is set to 3 which is reasonable, don't want to hang the process.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants