Inconsistent results for repo API queries #47552
Replies: 4 comments 3 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Hey @jbreckmckye, did you ever come to any conclusion here? I think I might have a similar problem fetching releases. Also, that other reply you got is ChatGPT so uh, yeah. |
Beta Was this translation helpful? Give feedback.
-
|
I'm using Search API (by private GitHub App) to list repos of our organisation and getting different results all the time. It makes impossible to rely on GitHub Search API even for Enterprise users. |
Beta Was this translation helpful? Give feedback.
-
|
Anyone noticing a similar kind of inconsistency with the CoPilot metrics API? We are getting different values for the same dates. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Hello all,
I'm having trouble fetching a list of my organization's repositories with both the REST and GraphQL APIs. The issue is with both, so I wonder if the problem is further up the chain.
In a nutshell: certain repos simply aren't returned by the API calls, despite paginating through the entire set; some are only returned sometimes, inconsistently. This seems the case despite using different PATs.
Here's an example call using the REST API via SDK:
This returns 733 responses for my org today - but in the UI, 833...
And not just that - several of the items returned by the iterator are incorrect. There's a whole bunch of what appear to be forks of our code by non-org users, which isn't what I understand
privateto mean here.My first assumption was that they key I was using might not have enough scope - but even using my own issued PAT, the query is missing org repositories that I created and am an admin of.
The project I'm working on needs a reliable list of repositories, in order to mirror state and capture important metrics about code at our organisation. What can I do to get this consistent list of organisation repositories?
EDIT
One thing I discovered is that if I stopped using my existing PAT, and instead created a brand new personal access token with exactly the same scopes, now the query seems to retrieve a larger (possibly full?) set of results.
Is it possible there is something odd happening with caches?
Beta Was this translation helpful? Give feedback.
All reactions