Skip to content

Rate Limit on add_dockerfile() #570

Answered by ColinFay
aftonsteps asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

So this is due to the fact that there is a rate limit when trying to install packages from GitHub without being logged (you can only make 60 requests by hour).

It's not purely {golem} related, but can indeed arise if you're rebuilding your Dockerfile too many time (as you will reach the GitHub API limit). That's the reason why install_github() has a auth_token parameter: https://remotes.r-lib.org/reference/install_github.html.

Two solutions here:

  • Wait another hour for the rate limit to restart
  • Add an oauth token to install_github inside your Dockerfile. You can create one automatically by calling usethis::browse_github_pat().

Hope this helps,

Colin

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ColinFay
Comment options

@aftonsteps
Comment options

@fmmattioni
Comment options

@aftonsteps
Comment options

@fmmattioni
Comment options

Answer selected by aftonsteps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants