Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API rate limit exceeded error? #163

Open
organicbrownrice opened this issue Jul 31, 2023 · 2 comments
Open

API rate limit exceeded error? #163

organicbrownrice opened this issue Jul 31, 2023 · 2 comments

Comments

@organicbrownrice
Copy link

I'm trying to install Seurat-wrappers, but I get this error message:

Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 164.123.254.23. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Rate limit remaining: 0/60
Rate limit reset at: 2023-07-31 18:02:07 UTC

To increase your GitHub API rate limit

  • Use usethis::create_github_token() to create a Personal Access Token.
  • Use usethis::edit_r_environ() and add the token as GITHUB_PAT.
@pratapstat
Copy link

Hi, I have faced the same issue. Any update regarding this?

@anasuyadighe
Copy link

To resolve this, you can follow the instructions provided in the error message:

  1. Create a Personal Access Token:

Use the usethis::create_github_token() function in R to create a Personal Access Token (PAT). This token will be used to authenticate your requests and grant you a higher rate limit.
2 .Edit R Environ:

Use usethis::edit_r_environ() to open your .Renviron file. This is a configuration file that allows you to set environment variables for R.

  1. Add the Token as GITHUB_PAT:

In the .Renviron file, add a line that sets your Personal Access Token as an environment variable named GITHUB_PAT. It should look like this:

makefile
Copy code
GITHUB_PAT=YOUR_PERSONAL_ACCESS_TOKEN
Make sure to replace YOUR_PERSONAL_ACCESS_TOKEN (PAT) with the actual token you generated.
PS: A PAT typically looks like a long string of alphanumeric characters.

  1. Save and Restart R:

Save the .Renviron file and restart your R session for the changes to take effect.
After completing these steps, try running the remotes::install_github() command again. It should now use your Personal Access Token for authentication and should not encounter the rate limit issue.

I was able to install SeuratWrappers after these steps..

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

No branches or pull requests

3 participants