Chatbox failure. Too many requests

Posted by Ben McLaren

8 months ago

1

ai chatbot openai chatgpt heroku rails

Error message:

Error performing ChatbotJob (Job ID: c650724b-ee05-4365-8ffe-1580ca158221) from SolidQueue(default) in 647.13ms: Faraday::TooManyRequestsError (the server responded with status 429):


Too many questions persisted in postgres database and causing openai to block requests as spam.

- Re seed the database and destroy all questions from Question model.

Add this line to your seed file and re build the databse.

Question.destroy_all