-
Notifications
You must be signed in to change notification settings - Fork 53
[github] failed to submit commit to github repo. #8
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
Comments
same problem |
same |
Signed-off-by: Eric Wang <skygragon@gmail.com>
@duyue6002 @fakeyanss please try reinstall github plugin with the latest fix? |
|
@fakeyanss have you got 'github' plugin finally work? |
Yes, it works. And now the problem is when i want to def submit():
for file in os.listdir('.'):
if not re.match("^[0-9]", file): # all submission file name are start with "0-9"
continue
os.system('leetcode submit ' + file)
# time.sleep(20) it will reponse info like this:
finally i make the program sleep 20s every time in loop, but it is low efficient. Did you have such a problem? |
429 error usually means you have sent too many requests to server within a given time window. In you case I guess leetcode.com would refuse to run your further submissions if you try to submit too fast. You have to slow down since leetcode.com won't approve that speed. Or you could modify github.js to temporarily bypass the leetcode.com submission logic and send file to GitHub directly, while I think you will still get similar error since GitHub itself has rate limit as well: https://developer.github.com/v3/#rate-limiting |
ok, thank for your response. Maybe i should concentrate on the original purpose of solve algorithm problems. And leetcode-cli is a very nice tool. It can provide mostly functions i have expectd. Thany you very much. The last question, do you live in Shanghai now? |
the "github" package has been renamed to "@octokit/rest"
see https://github.com/octokit/rest.js/releases/tag/v14.0.0
The text was updated successfully, but these errors were encountered: