-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Feature Request]: Add fail_on_http_error
boolean to Github readers
#12649
Comments
I am happy to do this in some time I have next Friday 19th or beforehand if I have available time. |
Relates to alan-turing-institute/reginald#157 |
@rwood-97 what's the error thought? Just 404? Anything more specific? |
This is an old log of the error (before the llama-hub integration) but essentially we are getting an timeout error.
run-llama/llama-hub#846 was from us |
This was a lot harder than I thought :( |
Feature Description
We are getting an error when trying to pull files from the github api using the
GithubRepositoryReader
.So far we have added a timeout and retries argument to the reader to try resolve this but it still seems to fail and so instead we have added a try/except in our own code to catch the HTTPError and then just continue onto the next repo we are trying to get data from. This means that if one request fails when getting data from the repo then we skip the whole repo.
We would like to add a
fail_on_http_error
flag to the readers which would allow us to have an if statement which catches the exception and continue onto the next file ifFalse
or keep the current behaviour of raising an exception ifTrue
.Reason
Continue onto next file if there is a error when requesting a file from the Github API.
Value of Feature
Rather than skipping the whole repo if one request fails we could just skip that file. This would allow us to get more complete data.
The text was updated successfully, but these errors were encountered: