askrella / whatsapp-chatgpt

ChatGPT + DALL-E + WhatsApp = AI Assistant :rocket: :robot:
3.46k stars 834 forks source link

Error 429 #20

Closed Adm-ctrl closed 1 year ago

Adm-ctrl commented 1 year ago

Please translate it to English. Thank you for your great work in advance! Once I send a request with !gpt, I receive the response

"An error occurred, please contact the administrator. (ChatGPTAPI error 429)".

I immediately asked ChatGPT about the error message and received the response that too many requests were made. Well, the openai account is new and only four chats have been started with it. Any ideas?

[Whatsapp ChatGPT] Client is ready! [Whatsapp ChatGPT] Received prompt from 492212123456799@c.us: Wie viele Zeitzonen gibt es? An error occured ChatGPTError: ChatGPTAPI error 429 at ChatGPTAPIBrowser.sendMessage (file:///C:/Users/adm/whatsapp-chatgpt/node_modules/chatgpt/src/chatgpt-api-browser.ts:563:23) at processTicksAndRejections (node:internal/process/task_queues:95:5) at handleMessage (C:\Users\adm\whatsapp-chatgpt\src\index.ts:48:22) at Client.<anonymous> (C:\Users\adm\whatsapp-chatgpt\src\index.ts:36:9) { statusCode: 429, statusText: '' }

navopw commented 1 year ago

I also had this several times. Could be because chatgpt is overloaded sometimes.

There is a new way to access the chatgpt api.

I will release a new version soon, hope it will fix your issue.

Adm-ctrl commented 1 year ago

thx a lot bro

dhevsabharish commented 1 year ago

@Adm-ctrl Can u please tell me how u opened the bot. i think i got it to work since i reached the line: [Whatsapp ChatGPT] Client is ready! (ss attached)

But i do not know how to move from there. The login was successful anol but idk how to access the bot from here. i searched thru my contacts list.. but i couldn't find any bot at all.

Any help is appreaciated!!

image

Adm-ctrl commented 1 year ago

@Adm-ctrl Can u please tell me how u opened the bot. i think i got it to work since i reached the line: [Whatsapp ChatGPT] Client is ready! (ss attached)

But i do not know how to move from there. The login was successful anol but idk how to access the bot from here. i searched thru my contacts list.. but i couldn't find any bot at all.

Any help is appreaciated!!

image

You need to message your account from another WhatsApp account. I asked my wife to send me a message. If someone messages you, for example: !gpt Who was first on Earth, the chicken or the egg. Just as an example.

navopw commented 1 year ago

Check the newest version, this project now works with OPENAI_API_KEY and not EMAIL & PASSWORD anymore.

You can create a API Key here: https://platform.openai.com/account/api-keys

Also check the latest README: https://github.com/navopw/whatsapp-chatgpt/blob/master/README.md

bhavnasiyeshvant commented 1 year ago

adding a payment details to my account and waiting for 10 mins to restart the service fixed error

belqit commented 1 year ago

image this was the problem for me