Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.63k stars 701 forks source link

Getting "ERROR: Something went wrong, please try again later!" 6x and then it works. #320

Closed deltanovember24 closed 1 year ago

deltanovember24 commented 1 year ago

When talking to the bot it first spits out "ERROR: Something went wrong, please try again later!" six times in the Discord chat, and then it gives an answer normally. The logs don't show any errors, except for a "Too Many Requests" error from OpenAI after it responded.

image File "C:\Users\dylan\Desktop\chatGPT-discord-bot-main\src\aclient.py", line 54, in send_message response = f"{response}{await responses.unofficial_handle_response(user_message, self)}" File "C:\Users\dylan\Desktop\chatGPT-discord-bot-main\src\responses.py", line 8, in unofficial_handle_response async for response in client.chatbot.ask(message): File "C:\Users\dylan\AppData\Roaming\Python\Python310\site-packages\revChatGPT\V1.py", line 744, in ask self.__check_response(response) File "C:\Users\dylan\AppData\Roaming\Python\Python310\site-packages\revChatGPT\V1.py", line 863, in __check_response response.raise_for_status() File "C:\Users\dylan\AppData\Roaming\Python\Python310\site-packages\httpx\_models.py", line 749, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '429 Too Many Requests' for url 'https://bypass.churchless.tech/api/conversation' For more information check: https://httpstatuses.com/429←[0m

Zero6992 commented 1 year ago

chatGPT server issue