sibis-platform / ncanda-data-integration

This is the Data Integration, MRI, and Bioinformatics Component of the National Consortium on Alcohol and NeuroDevelopment in Adolescence (NCANDA), funded by the NIAAA.
https://www.nitrc.org/projects/ncanda-datacore
BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

post_github_issues.py: API rate limit exceeded for sri-ncanda. #168

Closed kipohl closed 7 years ago

kipohl commented 7 years ago

@sbenito : can you please create today a try and except so that if this happening again it does not break the pipeline ? when you catch the error simply do a print statement so that we the catch it in another way. Please let me know when it is done so that I can run the script again.

Thanks

Kilian

[torsten@ncanda-storage redcap]$ /tmp/run_script Edit open issue failed for subject (B-00476-F-5, No MR session for Subject B-00476-F-5 between 2016-06-23 and 2016-10-21), title (B-00476-F-5, No MR session for Subject B-00476-F-5 between 2016-06-23 and 2016-10-21). Error: 403 {u'documentation_url': u'https://developer.github.com/v3/#rate-limiting', u'message': u'API rate limit exceeded for sri-ncanda.'} Traceback (most recent call last): File "/home/torsten/ncanda-data-integration/scripts/crond/post_github_issues.py", line 255, in sys.exit(main(args=argv)) File "/home/torsten/ncanda-data-integration/scripts/crond/post_github_issues.py", line 228, in main create_issues(repo, args.title, args.body, verbose=args.verbose) File "/home/torsten/ncanda-data-integration/scripts/crond/post_github_issues.py", line 205, in create_issues if is_open_issue(repo, subject, verbose=verbose): File "/home/torsten/ncanda-data-integration/scripts/crond/post_github_issues.py", line 103, in is_open_issue for issue in repo.get_issues(state='all'): File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 49, in iter newElements = self._grow() File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 61, in _grow newElements = self._fetchNextPage() File "/usr/lib/python2.7/site-packages/github/PaginatedList.py", line 162, in _fetchNextPage headers=self.headers File "/usr/lib/python2.7/site-packages/github/Requester.py", line 172, in requestJsonAndCheck return self.check(*self.requestJson(verb, url, parameters, headers, input, cnx)) File "/usr/lib/python2.7/site-packages/github/Requester.py", line 180, in check raise self.createException(status, responseHeaders, output) github.GithubException.RateLimitExceededException: 403 {u'documentation_url': u'https://developer.github.com/v3/#rate-limiting', u'message': u'API rate limit exceeded for sri-ncanda.'} [1]- Done emacs ../crond/back-nightly [2]+ Done emacs /tmp/run_script [torsten@ncanda-storage redcap]$

sbenito commented 7 years ago

@kipohl I will let you know when it is ready

sbenito commented 7 years ago

Pull request merged