API Errors

This documentation is designed to be your trusted guide, providing a deep dive into the world of API errors. Whether you're a seasoned developer looking to refine your error-handling strategies or a newcomer eager to grasp the fundamentals, this resource offers valuable insights, best practices, and practical examples to help you navigate the intricacies of API errors with confidence.

Error 400 Agent Invalid

Make sure that the agent name you are using is within the list of available agents in your account. It is possible that the agent has not changed in the current window and you may be invoking an agent that does not exist. If the issue persists, refresh the page and call the required agent again.

Error 400 Fields not allowed

Check if the agent fields are valid, each one contains information in the symbol ℹ️.

Error 401 API Key Invalid

If you are a user with a Free plan after October 13, 2023, you do not need to update or enter OpenAI or PineCone API keys to start working with CodeGPT. However, if your plan is from before this date, you may have conflicts recognizing the current API key. Therefore, it is recommended to log out and log back in.

Now, if you have a Basic or higher-level account, it is possible that your provider's API key is not correct, or you may need to contact your provider. In premium plans, we provide the API keys. If you are a paying user and encounter this issue, please contact our support service.

Error 401 Plan expired

Check your consumption plan and start date. To renew your plan, you can go to Plan Renew.

Error 404

Check the endpoint structure (domain, id agent and name)