chatgpt-vscode icon indicating copy to clipboard operation
chatgpt-vscode copied to clipboard

HTTP 429 Too Many Requests.

Open aminul-xs opened this issue 1 year ago • 35 comments

Verify it's not a duplicate bug report

Describe the Bug

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

No response

aminul-xs avatar Apr 03 '23 04:04 aminul-xs

image I am also facing this. I think getting this error may be because the free account has run out of money for the trial. Excuse me because my English is not good.

Karest2512 avatar Apr 03 '23 07:04 Karest2512

I am getting this error too. Idk whether the reason is i am using a VPN. But the chatGPT on web still works normally, it seems to be a problem of API.

cbachen1997 avatar Apr 03 '23 08:04 cbachen1997

Facing the exact same here. I couldn't get it working yet

cazzoo avatar Apr 03 '23 08:04 cazzoo

Facing the same issue and I haven’t had opportunity to try it

moonpig-vinicius-chagas avatar Apr 03 '23 13:04 moonpig-vinicius-chagas

I have the same issue in vscode.

sp1ke1980 avatar Apr 03 '23 15:04 sp1ke1980

same here, anyone figured it out? or found an alternative pleaseeee

Salmagic avatar Apr 03 '23 15:04 Salmagic

Hi, As the error states you have insufficient_quota error thrown from OpenAI side, it is out of extension's control. However, here are some steps that may help you understand your issue:

  1. Make sure your account hasn't expired from here: https://platform.openai.com/account/usage
  2. Make sure you have enough credit to use OpenAI APIs from here: https://platform.openai.com/account/usage
  3. Try generating a new API Key and change the API Key used in the extension from here: https://platform.openai.com/account/api-keys. To change your API Key, Click on Change API Key on the home page of the sidebar Genie: Conversation view.

If you have an active account with credit it will show on the /usage page like this:

image

genieai-info avatar Apr 03 '23 16:04 genieai-info

Hi, As the error states you have insufficient_quota error thrown from OpenAI side, it is out of extension's control. However, here are some steps that may help you understand your issue:

  1. Make sure your account hasn't expired from here: https://platform.openai.com/account/usage
  2. Make sure you have enough credit to use OpenAI APIs from here: https://platform.openai.com/account/usage
  3. Try generating a new API Key and change the API Key used in the extension from here: https://platform.openai.com/account/api-keys. To change your API Key, Click on Change API Key on the home page of the sidebar Genie: Conversation view.

If you have an active account with credit it will show on the /usage page like this:

image

thanks,use the new key, normal work

yxw007 avatar Apr 04 '23 07:04 yxw007

Guys, please try to search for a similar issue before posting.

Most developers (including me) would just close this issue with a remark that this is a duplicate since this is exactly the same issue as https://github.com/ai-genie/chatgpt-vscode/issues/25

@genieai-info when someone is trying to post a new issue, they currently have those two checkboxes

[ ] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. [Search all issuees](https://github.com/ai-genie/vscode-chatgpt/issues?q=). *

[ ] I read [Troubleshooting guide on Readme](https://github.com/ai-genie/vscode-chatgpt#troubleshooting) and there is not a guide on how to solve my problem. *

Adding a new section with some additional checkboxes might be a good idea.

Additional checks in case of 429 Too Many Requests error

Confirm that you did check and understood all of the following

[ ] I have read the ChatGPT API FAQ, and I am aware that OpenAI API is not part of the ChatGPT Plus subscription and that I need to pay for it separately

[ ] I have checked that my account is not expired

[ ] I have checked that I have enough credit on my account

[ ] I have tried to use cURL, and I am not getting the 429 error with cURL

viking1304 avatar Apr 04 '23 07:04 viking1304

Good point, but I've tested with different api keys and problem just only with your extension. When I'm doing request with other application, the problem is not appearing

sp1ke1980 avatar Apr 04 '23 09:04 sp1ke1980

was getting this error, signed up for a brand new chatGPT account and new api key and im still getting this error

antisect avatar Apr 04 '23 10:04 antisect

i also made a brand new account and was still getting the error, it was only when i set up a new phone number then it stared working again, but it says i got a 5USD credit which will expire fast, so i guess the problem was not having enough credit.. sadly

Salmagic avatar Apr 04 '23 10:04 Salmagic

Clean up the key first, and then add a new key. try again

yxw007 avatar Apr 04 '23 10:04 yxw007

clean and add a new key, doesn't work. I have chatgpt plus api.

xiaoouwang avatar Apr 04 '23 22:04 xiaoouwang

I also have the same issue with this extension. Cleaned API key and added a new one, still the same issue.

skossan avatar Apr 05 '23 14:04 skossan

Got the same problem today.

i have tried to reset the new api key but it's still not work.

ianccy avatar Apr 06 '23 10:04 ianccy

I have remedied this problem by creating a new API key after adding a payment method!

uekky avatar Apr 06 '23 11:04 uekky

i also found the way to solve the problem. The way is register the new account...

ianccy avatar Apr 06 '23 14:04 ianccy

Same here. Cleaned, register the new account , still doesn't work

tn00251521 avatar Apr 07 '23 04:04 tn00251521

same here, still working fine on chat.openai.com, but using Genie, it does not work

piavgh avatar Apr 07 '23 05:04 piavgh

Guys, I am sorry to be "that" guy, but with all due respect, is it hard to read what other people write and check a few simple things?

You have to understand that you need a free trial of OpenAI API or pay for it. It is not part of ChatGPT Plus, and if chat.openai.com works for you, that doesn't mean you have the right to use API and that it will work.

Even if you didn't spend any of your credit Screenshot 2023-04-07 at 09 59 51

you can't use the API if your trial is expired Screenshot 2023-04-07 at 09 59 36

and you will get 429 responses every single time, even if you create 100 new keys.

I was also confused at first and complained that the previous plugin didn't work for me until I finally realized I was wrong from the beginning.

The only way to help developers is to resolve the bug, if it exists, is to understand this message, check everything on your side, test your key with cULR and post the response if it is anything other than 429.

Please do all of those:

  1. read the ChatGPT API FAQ
  2. check your Usage limits. "You must be on a paid plan to set up usage limits" means that you are using a free API trial, even if you are ChatGPT Plus subscriber
  3. if you didn't pay for API, check your account and see if your trial is expired
  4. on the same page, check that you have enough credit if the trial is not expired
  5. if everything is fine there, check with cURL and post the result

viking1304 avatar Apr 07 '23 08:04 viking1304

clean and add a new key, doesn't work. I have chatgpt plus api.

I am sorry, but I have to tell you the sad truth. API usage is not included in your ChatGPT Plus subscription. You need to pay for API or to use the free trial if you want to use API. Read the ChatGPT API FAQ

viking1304 avatar Apr 07 '23 08:04 viking1304

  1. https://platform.openai.com/account/usage

Guys, I am sorry to be "that" guy, but with all due respect, is it hard to read what other people write and check a few simple things?

You have to understand that you need a free trial of OpenAI API or pay for it. It is not part of ChatGPT Plus, and if chat.openai.com works for you, that doesn't mean you have the right to use API and that it will work.

Even if you didn't spend any of your credit Screenshot 2023-04-07 at 09 59 51

you can't use the API if your trial is expired Screenshot 2023-04-07 at 09 59 36

and you will get 429 responses every single time, even if you create 100 new keys.

I was also confused at first and complained that the previous plugin didn't work for me until I finally realized I was wrong from the beginning.

The only way to help developers is to resolve the bug, if it exists, is to understand this message, check everything on your side, test your key with cULR and post the response if it is anything other than 429.

Please do all of those:

  1. read the ChatGPT API FAQ
  2. check your Usage limits. "You must be on a paid plan to set up usage limits" means that you are using a free API trial, even if you are ChatGPT Plus subscriber
  3. if you didn't pay for API, check your account and see if your trial is expired
  4. on the same page, check that you have enough credit if the trial is not expired
  5. if everything is fine there, check with cURL and post the result

Yeah, now I see why. It's a twisted and tricky move from openai to make these two billed separately. That's why a lot of people got confused I guess even with the instructions above.

So yes,

Is the ChatGPT API included in the ChatGPT Plus subscription?: No, the ChatGPT API and ChatGPT Plus subscription are billed separately.

xiaoouwang avatar Apr 07 '23 08:04 xiaoouwang

Yeah, now I see why. It's a twisted and tricky move from openai to make these two billed separately. That's why a lot of people got confused I guess even with the instructions above.

I have a feeling that a lot of Plus subscribers would never pay for it if they knew that they cannot use API. Also, in most cases, it is also much cheaper to pay for API than to pay for a Plus subscription.

viking1304 avatar Apr 07 '23 09:04 viking1304

Yes I just calceled my subscription. Will test how much I consumed with the api. Thanks to this extension 🤣

On Fri, Apr 7, 2023, 11:04 viking1304 @.***> wrote:

Yeah, now I see why. It's a twisted and tricky move from openai to make these two billed separately. That's why a lot of people got confused I guess even with the instructions above.

I have a feeling that a lot of Plus subscribers would never pay for it if they knew that they cannot use API. Also, in most cases, it is also much cheaper to pay for API than to pay for a Plus subscription.

— Reply to this email directly, view it on GitHub https://github.com/ai-genie/chatgpt-vscode/issues/51#issuecomment-1500095133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2IFY4DBP2O4LX3GE7R2VTW77KBZANCNFSM6AAAAAAWQYPS34 . You are receiving this because you commented.Message ID: @.***>

xiaoouwang avatar Apr 07 '23 11:04 xiaoouwang

How come my free API account expired on April 1st when it was created today (April 14) ?!? Did it expire backwards in time? Is this a negative free time? 😶

image

oywino avatar Apr 14 '23 12:04 oywino

How come my free API account expired on April 1st when it was created today (April 14) ?!? Did it expire backwards in time? Is this a negative free time? 😶

image

Same. I just installed Genie yesterday on VSCode and it said I have expired credits which expired on the 1st.

SirKennethYan avatar Apr 15 '23 18:04 SirKennethYan

@oywino and @kennyan11b - if you applied for a DALL·E access before, your API trial started when you got confirmation mail that you can try DALL·E

Check your emails and see if you have a mail titled "Your invite to create with DALL·E is here." If you have it check the date.

btw. new accounts will get only $5.00 credits instead of $18.00. If you see $18.00, you can be 99.99999999% sure that your trial is already expired.

viking1304 avatar Apr 17 '23 10:04 viking1304

Hi, I decided to sign up, and mine now looks like this:

image

oywino avatar Apr 17 '23 11:04 oywino

Hey, Is there a way to use this extension without needing a login?

RonaldGuilhermePDS avatar Apr 19 '23 14:04 RonaldGuilhermePDS