Skip to content
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のAPIの制限を超えた場合、エラーになる。 #4

Open
yoshiokaCB opened this issue Sep 27, 2023 · 1 comment
Open

Comments

@yoshiokaCB
Copy link
Contributor

GithubのAPIの制限を超えるとエラーが発生します。
https://docs.github.com/ja/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting
何かしらAPIの制限を超えたことがわかると良いと思います。

I, [2023-09-22T00:36:13.185103 #355]  INFO -- : [a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] Completed 500 Internal Server Error in 149093ms (ActiveRecord: 56.2ms | Allocations: 7619813)
F, [2023-09-22T00:36:13.188219 #355] FATAL -- : [a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e]   
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] Octokit::TooManyRequests (GET https://api.github.com/repos/farend-biz/aws-redmica/commits/8b2e8dbce04cc1f0053d1a623efbac3d698324a7: 403 - API rate limit exceeded for user ID 4011289. If you reach out to GitHub Support for help, please include the request ID D07E:7721:89A4F8:91C030:650CE17C. // See: https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting):
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e]   
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:156:in `block in get_filechanges_and_append_to'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:155:in `each'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:155:in `get_filechanges_and_append_to'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] plugins/redmine_github_adapter/app/models/repository/github.rb:76:in `save_revisions!'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] plugins/redmine_github_adapter/app/models/repository/github.rb:47:in `fetch_changesets'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] app/controllers/repositories_controller.rb:87:in `show'
[a3e6f162-dc8f-44ba-bb3f-90c6cf22f39e] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
I, [2023-09-22T00:36:13.203532 #355]  INFO -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab] Started GET "/projects/aws-redmica/repository" for 110.5.22.48 at 2023-09-22 00:36:13 +0000
I, [2023-09-22T00:36:13.205133 #355]  INFO -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab] Processing by RepositoriesController#show as HTML
I, [2023-09-22T00:36:13.205287 #355]  INFO -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab]   Parameters: {"id"=>"aws-redmica"}
I, [2023-09-22T00:36:13.214091 #355]  INFO -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab]   Current user: admin (id=1)
I, [2023-09-22T00:36:13.298260 #442]  INFO -- : [f09972c4-1745-49b2-b4cc-441a583a89ba] Completed 500 Internal Server Error in 61029ms (ActiveRecord: 57.4ms | Allocations: 6046394)
F, [2023-09-22T00:36:13.301238 #442] FATAL -- : [f09972c4-1745-49b2-b4cc-441a583a89ba]   
[f09972c4-1745-49b2-b4cc-441a583a89ba] Octokit::TooManyRequests (GET https://api.github.com/repos/farend-biz/aws-redmica/commits/a1dfb38105649d953d38d61a749f84dee7b34f9c: 403 - API rate limit exceeded for user ID 4011289. If you reach out to GitHub Support for help, please include the request ID D088:5201:9393FE:9BAF3F:650CE17D. // See: https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting):
[f09972c4-1745-49b2-b4cc-441a583a89ba]   
[f09972c4-1745-49b2-b4cc-441a583a89ba] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:156:in `block in get_filechanges_and_append_to'
[f09972c4-1745-49b2-b4cc-441a583a89ba] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:155:in `each'
[f09972c4-1745-49b2-b4cc-441a583a89ba] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:155:in `get_filechanges_and_append_to'
[f09972c4-1745-49b2-b4cc-441a583a89ba] plugins/redmine_github_adapter/app/models/repository/github.rb:76:in `save_revisions!'
[f09972c4-1745-49b2-b4cc-441a583a89ba] plugins/redmine_github_adapter/app/models/repository/github.rb:47:in `fetch_changesets'
[f09972c4-1745-49b2-b4cc-441a583a89ba] app/controllers/repositories_controller.rb:87:in `show'
[f09972c4-1745-49b2-b4cc-441a583a89ba] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
I, [2023-09-22T00:36:13.450162 #355]  INFO -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab] Completed 500 Internal Server Error in 244ms (ActiveRecord: 4.8ms | Allocations: 4752)
F, [2023-09-22T00:36:13.452718 #355] FATAL -- : [d1ce3447-7e3c-498a-8434-e3bcf60888ab]   
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] Octokit::TooManyRequests (GET https://api.github.com/repos/farend-biz/aws-redmica/branches?page=1&per_page=100: 403 - API rate limit exceeded for user ID 4011289. If you reach out to GitHub Support for help, please include the request ID D08E:70FF:8BEED3:9409D8:650CE17D. // See: https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting):
[d1ce3447-7e3c-498a-8434-e3bcf60888ab]   
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:30:in `block in branches'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:29:in `step'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:29:in `branches'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] plugins/redmine_github_adapter/lib/redmine/scm/adapters/github_adapter.rb:233:in `default_branch'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] plugins/redmine_github_adapter/app/models/repository/github.rb:178:in `default_branch'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] app/controllers/repositories_controller.rb:344:in `find_project_repository'
[d1ce3447-7e3c-498a-8434-e3bcf60888ab] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
@vividtone
Copy link
Contributor

#1 の実装により解決する予定です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants