di-sukharev / opencommit

just a GPT wrapper for git — generate commit messages by an LLM in 1 sec — works best with Claude 3.5 — supports local models too
https://www.npmjs.com/package/opencommit
MIT License
6.19k stars 331 forks source link

[Bug]: ✖ Error: Request failed with status code 429 #141

Closed DorianMairy closed 1 year ago

DorianMairy commented 1 year ago

Opencommit Version

2.0.0

Node Version

16.20.0

NPM Version

9.6.5

What OS are you seeing the problem on?

Windows

What happened?

A bug happened!

i have the error :

◓ Generating the commit message
│ └ ✖ Error: Request failed with status code 429

when the oc generate a message

Expected Behavior

its work ^^'

Current Behavior

✖ Error: Request failed with status code 429

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

miggi92 commented 1 year ago

Please check your OpenAI API quota.

OpenAI Error Code: Error Code 429 - Rate limit reached for requests

https://help.openai.com/en/articles/6891829-error-code-429-rate-limit-reached-for-requests

Same issues:

7

66 ( still open )

codeagencybe commented 1 year ago

I have this problem too and I'm the only user using the key. And i'm not exagerating with the usage either. The error 429 comes very random adhoc. Sometimes I didn't commit anything for 2 hours and I still hit error 429. I try again immediately after and it works. If it would be rate limiting, then it doesn't make sense that a second subtry immediately later would let it pass.

I think it's more likely an overload from their servers which is also handled on same error code as documented here: https://help.openai.com/en/articles/6891834-error-code-429-the-engine-is-currently-overloaded-please-try-again-later

MendyLanda commented 1 year ago

I too encountered the same error, I was on the free trial. it was solved by adding a credit card to OpenAI and generating a new secret after. As @codeagencybe noted, this error is solely due to openai api issues.