> For the complete documentation index, see [llms.txt](https://manual.formwise.ai/formwise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.formwise.ai/formwise/support/troubleshooting/error-500-troubleshooting.md).

# Error 500 Troubleshooting

A 500 error is an OpenAI error and means one of two things:

* Your OpenAI API account has reached its limit and needs a valid form of payment or credits added. You can check your account [here](https://platform.openai.com/settings/organization/billing/overview).
* Your tool's prompt + response has exceeded the maximum tokens of the model powering your tool. Try using a longer context engine like GPT-4o or reducing the amount of text in your prompt.

{% hint style="info" %}
Upon receiving an error we will send you an email with the full error. Check your email to see the specific reason for receiving this error.
{% endhint %}

Related:

{% content-ref url="/pages/LzuOHnsadVpPDFQFFHbr" %}
[Using Front-End File Uploads in CoPilots](/formwise/core-tools/copilots/using-front-end-file-uploads-in-copilots.md)
{% endcontent-ref %}

{% content-ref url="/pages/pge3L1ffDimc6Nc0qL9P" %}
[Using Front-End File Uploads in SmartForms](/formwise/core-tools/smartforms/using-front-end-file-uploads-in-smartforms.md)
{% endcontent-ref %}

{% content-ref url="/pages/y07Lo5eFWFxYCkv7IaMN" %}
[Using Backend Data Sources in CoPilots](/formwise/core-tools/copilots/using-backend-data-sources-in-copilots.md)
{% endcontent-ref %}

{% content-ref url="/pages/qmJ93yJZwI6bcgG0wG56" %}
[Using Backend Data Sources in SmartForms](/formwise/core-tools/smartforms/using-backend-data-sources-in-smartforms.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manual.formwise.ai/formwise/support/troubleshooting/error-500-troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
