kernelci / kernelci/kernelci-deploy

Use authenticated GitHub API calls

オープン
#62 コメント 8 件 リアクション 0 件 担当者 2 名 @mgalka が担当を希望しています GitHub で見る
主要言語
Python
スター
4
フォーク
19
平均マージ
3日 9時間
マージ済み PR(30日)
3

説明

The staging job is often failing with this error:
```
Pushing kernel test branch for mainline
path: checkout/linux
repo: kernelci/linux
Traceback (most recent call last):
File "/home/kernelci/kernelci-deploy/./kernel.py", line 87, in
ret = main(args)
File "/home/kernelci/kernelci-deploy/./kernel.py", line 43, in main
repo = kernelci.GITHUB.get_repo(repo_name)
File "/usr/lib/python3/dist-packages/github/MainClass.py", line 294, in get_repo
headers, data = self.__requester.requestJsonAndCheck(
File "/usr/lib/python3/dist-packages/github/Requester.py", line 275, in requestJsonAndCheck
return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))
File "/usr/lib/python3/dist-packages/github/Requester.py", line 286, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.RateLimitExceededException: 403 {'message': "API rate limit exceeded for 52.250.7.52. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", 'documentation_url': 'https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting'}
```
So the solution would seem to be about using authenticated requests.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。