Skip to content

Troubleshooting & FAQ

Kaicheng(Kevin) Yang edited this page Jun 17, 2024 · 14 revisions

Troubleshooting & FAQ

Script Errors

AttributeError: module 'botometer' has no attribute 'Botometer'

Your script is probably named botometer.py and it's importing itself instead of the botometer module. Give your script a different name and try again.

HTTP Errors

403 Client Error

If you are having the following error message:

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://botometer-pro.p.rapidapi.com/2/check_account.

It probably means you haven't subscribe to the Botometer-Pro API yet. Rapid API visually allows you to see your RapidAPI key without subscribing to any of the Botometer plans (from the "Endpoints" page), users can copy and paste their rapid API key into their own code attempting to utilize the botometer-python package (likely based on the "Quick Start" instructions) prior to subscribing. However, if you have not yet subscribed to any plan, you will trigger the 403 error.

The solution is to go to the Endpoints page (after creating a RapidAPI account), clicking Subscribe to Test, and then selecting whatever plan the user prefers.

503 Service Unavailable

This error happens when our web server is not forwarding requests to the Botometer service. This error most often occurs when we are pushing an update to the backend code, but sometimes happens when the service is over capacity. In either case, wait 60 seconds and try again. Updates may take up to 5 minutes to complete, so be patient if you see this error.

504 Gateway Timeout

This seems to happen on the rare occasion that RapidAPI is having issues and is timing out. Not much can be done here besides retrying the request.