-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Github] Error while checking for inaccessible repositories. Exception: 403
when trying to sync private
repositories
#2636
Comments
We are able to index documents from a private repository by specifying the repo in the list of repositories. However, we receive a forbidden error only when the rate limit is exceeded, it applies to both private and public repositories. |
@danajuratoni @artem-shelkovnikov Could you please check this & update? |
@spong can you give it a try again? If it does not work, can we pair to investigate it together? |
@spong does this work for you? If yes, can we close this issue? Also, the PR is merged to |
Sorry @moxarth-elastic, I've been in-and-out on PTO and had been focused on some release items before then so didn't have a chance to confirm/repro. Just catching up on a few things now, but will test and confirm all is good here shortly 👍 |
Just pulled the latest from After that error, if I go and update the Let me know if you need any more details or feel free to reach out on slack if you'd like to pair -- happy to help however I can 🙂 |
@moxarth-elastic and I just paired and were able to reproduce on my machine running kibana/es/connectors all from source, on the @moxarth-elastic tried reproducing using my same token using both |
That looks weird - as if Github started throttling you out or marked our connector as something breaching security? Should we follow up with Github on that? @elastic/ingestion-team |
Yes, please! Does this occur for native connectors as well, or only self-managed ones? |
@moxarth-elastic @spong reading a bit about throttling, the limits for api keys are quite strict (5000 requests per hour). Was it possible to run a sync after an hour or so? Have you been able to see the rate limits for your account when syncing? |
If the problem is related to rate limit, I should have got this error too but I was able to ingest the documents of the private repo - I even tested the connector on the Kibana setup in local machine, but i could not reproduce the issue there too. In my case, the connector is working normally. Here is the log file for the reference: github-privaterepo-with-organization.log |
I have a feeling it's something weird, maybe anti-abuse kicks in: https://github.com/orgs/community/discussions/24494? Or, could be something related to local setup (routing, VPNs and such). @moxarth-elastic - can we add more logs? Specifically, good to log:
This will help us understand better what's happening and submit a ticket to Github. |
@artem-shelkovnikov Parth has added logs in this PR #2816, please take a look and drop a suggestion if any. |
Bug Description
I was trying to sync some internal documentation from the https://github.com/elastic/security-team repo, which is an Elastic
private
repository (notinternal
), and if specifying the repo in theList of repositories
field within the config, the sync will fail with the following error:Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
So long as the access token has access to the repo (which it does), the content should be synced.
Environment
Running Kibana
main
from source, ES viayarn es snapshot
, and Github connectormain
from source as well.Additional context
If you configure
List of repositories
to be*
, and provide the repo filter via an Advanced Filter (below), syncing will work without issue.Advanced Filter
The text was updated successfully, but these errors were encountered: