Skip to content

github rate limit #315

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

Closed
lukemarsden opened this issue May 4, 2024 · 5 comments
Closed

github rate limit #315

lukemarsden opened this issue May 4, 2024 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@lukemarsden
Copy link

lukemarsden commented May 4, 2024

after using gptscript for a while with github-hosted tools, I start hitting this:

2024/05/04 08:38:36 failed resolving github.com/gptscript-ai/search/duckduckgo at ./get-blog-posts-search.gpt: failed to GitHub commit of gptscript-ai/search at HEAD: 403 Forbidden {"message":"API rate limit exceeded for <my-ip>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

At first I thought this was duckduckgo rate limiting me, but then I realised it was github when resolving the module itself!

Can we cache the result of whatever we're using the github API for?

@sangee2004
Copy link
Contributor

One way to work around the problem is to set the following env variable - GITHUB_AUTH_TOKEN

@lukemarsden
Copy link
Author

thanks! maybe add that to the readme?

@cjellick
Copy link
Contributor

@sangee2004 is this in docs? could we put it in the FAQ if it isnt?

@cjellick cjellick added the documentation Improvements or additions to documentation label Jul 11, 2024
@sangee2004
Copy link
Contributor

It is not currently present in our docs. I will have it added to FAQ section.

@sangee2004 sangee2004 self-assigned this Jul 11, 2024
@sangee2004
Copy link
Contributor

We now have documentation for handling github rate limit issue in FAQ section - #646

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

No branches or pull requests

3 participants