ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code
https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode
ISC License
1.12k stars 70 forks source link

HTTP 429 Error. #106

Closed EHMilon closed 8 months ago

EHMilon commented 1 year ago

Verify it's not a duplicate bug report

Describe the Bug

When i search something this error will happen:

HTTP 429 Too Many Requests. Too many requests try again later. You can clear your API Key from VS Code's secrets storage with Genie: Clear API Key command. Potential reasons:

You exceeded your current quota, please check your plan and billing details You are sending requests too quickly The engine is currently overloaded, please try again later. See https://platform.openai.com/docs/guides/error-codes for more details. { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null } }

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

default

Additional context

i tried to reinstall, clear API still it don't work.

image
Mkp4coder commented 1 year ago

Hii Milon, I'm facing exactly the same issue. I'm trying again and again but I can't be able to solve this. Please text me back when you will succeed in solving this Bug.

stinghxk commented 1 year ago

Perhaps your free trial has expired if you are not a paid account.

EHMilon commented 1 year ago

"I haven't received any support from the Genie AI developer. It has been two days and I still haven't heard back."

EHMilon commented 1 year ago

Perhaps your free trial has expired if you are not a paid account.

are you sure. there are no announcement for paid usage genie ai extension.

EHMilon commented 1 year ago

i am uninstalling Genie AI extension.

xxyy110 commented 1 year ago

I think it is your openai free account expired. I have exact the same error and I also tried different openai backed vs code extension, none worked. The openai free account expires in 3 months. After that you need to setup paid account and use pay as you go plan.

stinghxk commented 1 year ago

Perhaps your free trial has expired if you are not a paid account.

are you sure. there are no announcement for paid usage genie ai extension.

Sorry for the confusion. I mean the openAI account you use. It has nothing to do with this extension.

contracourse commented 1 year ago

I have the same problem but can still use chatgpt on the chat.openai website.

EHMilon commented 1 year ago

Now I understand.

On Mon, Jun 5, 2023, 3:08 PM stinghxk @.***> wrote:

Perhaps your free trial has expired if you are not a paid account.

are you sure. there are no announcement for paid usage genie ai extension.

Sorry for the confusion. I mean the openAI account you use. It has nothing to do with this extension.

— Reply to this email directly, view it on GitHub https://github.com/ai-genie/chatgpt-vscode/issues/106#issuecomment-1576419039, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZTTBFCJV5U2BONLT4RYNT3XJWOXXANCNFSM6AAAAAAYW4T23U . You are receiving this because you authored the thread.Message ID: @.***>

bagrounds commented 8 months ago

Same problem.

HTTP 429 Too Many Requests. Too many requests try again later. You can clear your API Key from VS Code's secrets storage with Genie: Clear API Key command. Potential reasons:

You exceeded your current quota, please check your plan and billing details You are sending requests too quickly The engine is currently overloaded, please try again later. See https://platform.openai.com/docs/guides/error-codes for more details.

{
"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}

~I wonder if copy/pasting the key is somehow not working properly... maybe some extra characters added or something... kinda hard to debug when the API key is obfuscated in the VSCode prompt.~

Edit: I tried manually entering the API key and got an auth error, so maybe it's not a copy/paste error, since I'd assume that would result in the same kind of auth error.

HTTP 401 Unauthorized. Make sure you are properly signed in. Clear your API Key from VS Code's [secrets storage](https://code.visualstudio.com/api/references/vscode-api#SecretStorage) with Genie: Clear API Key command. Potential reasons:

Invalid Authentication
Incorrect API key provided.
Incorrect Organization provided.
See https://platform.openai.com/docs/guides/error-codes for more details.
{
    "error": {
        "message": "Incorrect API key provided: sk-cnOGd***************************************KTyR. You can find your API key at https://platform.openai.com/account/api-keys.",
        "type": "invalid_request_error",
        "param": null,
        "code": "invalid_api_key"
    }
}

Version info:

➜ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
➜ code --version
1.83.1
f1b07bd25dfad64b0167beb15359ae573aecd2cc
x64

Trying to follow advice from a comment in a similar issue thread... :thinking: I get the same error with curl from the command line...

➜ curl https://api.openai.com/v1/chat/completions \                       
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
     "model": "gpt-3.5-turbo",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.9
   }'
{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

Ah, maybe this is the problem. I created an account with my work email yesterday, then I created an account with my personal email today, but used the same phone number for each.

You only get free credits for the first account associated with your phone number. Subsequent accounts are not granted free credits. I think this may include ChatGPT registration, not just API.

https://community.openai.com/t/free-trail-usage-not-working/116886/4

Confirmed! Using an API key from the first account I created, the Genie VSCode extension works on my personal machine.