When working with the GetGenius API, you may encounter various types of errors. These errors can occur due to a variety of reasons, such as invalid requests, server issues, or exceeding rate limits. Understanding how to handle these errors is crucial for maintaining a smooth user experience.
When an error occurs, the API will return a response that includes an error code and a message providing more details about the error. These error messages are designed to be human-readable and to provide clear guidance on how to resolve the issue.
Error Codes #
Here are some common error codes you might encounter. It’s important to implement proper error handling in your application to ensure that it can gracefully handle any errors that occur and provide appropriate feedback to the user.
Status Code | Message | Description |
---|---|---|
400 | Invalid querying parameter | Querying parameters or requests body is invalid. |
429 | Exceed rate limit | Exceed the rate limit. |
401 | Unauthorized | This request is not supported. |
403 | Forbidden | You are not allowed to access this resource |
404 | Not found | You are not allowed to access this resource |
Common issues #
While integrating and using the GetGenius API, you may encounter some common issues. Here are a few of them along with their possible solutions:
1. Invalid API Key #
If you receive an “Invalid API Key” error, make sure that you have entered the API key correctly without any extra spaces or characters. If the issue persists, check to see if your API key is still valid or if it needs to be regenerated.
2. Exceeding Rate Limits #
If you receive a “Too Many Requests” error, it means you have exceeded the rate limit for your API key. In this case, you should either optimize your requests or consider upgrading your API plan for a higher rate limit.
3. Server Errors #
If you encounter a “500 Internal Server Error”, it is an issue on our end. Please report these incidents to our support team so we can investigate and resolve them as soon as possible.
4. Connection Issues #
If you’re having trouble connecting to the API, make sure your internet connection is stable. Also, check if there are any issues with your firewall settings or network configuration that might be blocking the connection.
Remember, our support team is always ready to help you resolve any issues you may encounter while using the GetGenius API. Don’t hesitate to reach out to us if you need any assistance.