# Integrations / Anthropic Claude: Troubleshooting

Source: https://www.kerlig.com/help/integrations/claude/troubleshooting

##### Troubleshoot Anthropic error messages and find the solution

**Balance too low**

Cause: Your credit balance is too low to access the Claude API.

Solution: Please go to [Plans & Billing](https://console.anthropic.com/settings/plans) to upgrade or purchase credits.

**Message too long**

Cause: The request is longer than the model's context window, the most text it can read at once.

Solution: Shorten the selected text, start a new chat, or switch to a model with a larger context window. See [context windows](https://docs.anthropic.com/en/docs/build-with-claude/context-windows).

**Image too large**

Cause: An attached image is larger than 5 MB, the most Anthropic accepts.

Solution: Attach a smaller image, or compress it first.

**Message flagged**

Cause: Anthropic's safety system rejected the request.

Solution: Rephrase your request. If you think it was flagged by mistake, contact Anthropic support.

**API key error**

Cause: The requesting API key is not correct.

Solution: Ensure the API key used is correct, or [generate a new one](https://console.anthropic.com/settings/keys).

**Permission denied**

Cause: Your API key does not have permission to use the specified model.

Solution: Make sure you have correct permission in [Settings](https://console.anthropic.com/settings).

**Rate limit reached**

Cause: Your account has hit a rate limit.

Solution: Pace your requests. See [Rate limits](https://docs.anthropic.com/en/api/rate-limits).

**Quota exceeded**

Cause: You have run out of credits.

Solution: Please go to [Plans & Billing](https://console.anthropic.com/settings/plans) to upgrade or purchase credits.

**Server error**

Cause: An unexpected error has occurred internal to Anthropic’s systems.

Solution: Please retry your requests after a brief wait.

**Server overloaded**

Cause: Anthropic’s API is temporarily overloaded.

Solution: Please retry your requests after a brief wait.

**Connection error**

Cause: Kerlig couldn't reach Anthropic.

Solution: Check your internet connection, VPN or proxy, then try again. Check the [status page](https://status.anthropic.com/).

**Error**

Cause: Something went wrong that Kerlig doesn't recognize.

Solution: Read Anthropic's own message, shown under the error. It usually names the cause. If it doesn't help, click **Copy details** and send it to [support@kerlig.com](mailto:support@kerlig.com).

---

[See Anthropic Error codes](https://docs.anthropic.com/en/api/errors)
