You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling get_stats_contributors on some repositories fails with max recursion error and it takes 35 minutes consistently (many trials) before raising this error.
I'm using the pygithub v1.55 (latest stable version from my knowledge).
Below is a step by step instruction to reproduce the error:
from github import Github
gh = Github(token)
repo_name = "digit-soft/laravel-i18n"
repo = gh.get_repo(repo_name)
response = repo.get_stats_contributors()
# takes 35 minutes before raising max recursion error
Following are some other repositories that raise this error: repo_names=["Dan0sz/ResourceHints-magento2", "kos-v/yii2-jquery-fix-clone", "ElaineKoo/weather"]
A general hint I've got while inspecting few github repos of these projects is that they are kind of no more maintained.
Can you help address this issue as I have script that processes a list of repositories ? So this slows down (if not kills) my work.
Or at least, is there any check I can do with the API so that I can anticipate such behavior and consequently skip these repositories?
Thank you so much for your dedication to help us !
The text was updated successfully, but these errors were encountered:
I'm having the same problem. When using the GitHub rest API directly via curl get request, the request returns an empty json. So my guess is, that it is a problem with the GitHub API itself. However, it would be good if pygithub would handle this differently.
Example: curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token MYTOKEN" https://api.github.com/repos/PicciMario/iPhone-Backup-Analyzer-2/stats/contributors
The HTTP status code is 202. This might be related to #1862 and #1108
Calling get_stats_contributors on some repositories fails with max recursion error and it takes 35 minutes consistently (many trials) before raising this error.
I'm using the pygithub v1.55 (latest stable version from my knowledge).
Below is a step by step instruction to reproduce the error:
Following are some other repositories that raise this error:
repo_names=["Dan0sz/ResourceHints-magento2", "kos-v/yii2-jquery-fix-clone", "ElaineKoo/weather"]
A general hint I've got while inspecting few github repos of these projects is that they are kind of no more maintained.
Can you help address this issue as I have script that processes a list of repositories ? So this slows down (if not kills) my work.
Or at least, is there any check I can do with the API so that I can anticipate such behavior and consequently skip these repositories?
Thank you so much for your dedication to help us !
The text was updated successfully, but these errors were encountered: