api call "/stats/code_frequency" returns empty object until you open "/graphs/code-frequency" in web browser #59744
Replies: 2 comments 1 reply
-
|
I encountered the same issue, but upon further research, I saw this note in the API documentation:
I confirmed that waiting a few minutes and then resubmitting the request does work. This also fits with the workaround you discovered, that pulling up the code frequency graph via your browser will cause Github to fetch and cache the statistics. |
Beta Was this translation helpful? Give feedback.
-
|
for me even after browsing to "/graphs/code-frequency", api still returns empty object |
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
I work in a corporation, and we have a lot of internal and private projects. Each of them returns {} for https://api.github.com/repos/ORG/REPO/stats/code_frequency until I navigate to https://github.com/ORG/REPO/graphs/code-frequency in a web browser. After that, the API call returns an array of stats.
Beta Was this translation helpful? Give feedback.
All reactions