# When a call fails

> What each kind of failure means, and where to look first.

Source: https://docs.sparset.ai/reference/when-a-call-fails

Start on the deployment’s **API** tab. Its **If a call fails** row opens **Requests and logs** on the failed calls, and the **Reliability** tab tells you whether the deployment itself is down.

In the workspace: Deployments / your deployment / API / First call / If a call fails

## Open the failed calls

The last row of **First call** on the API tab is **If a call fails**. Each link opens the deployment’s **Requests and logs** tab, already filtered:

| Name | What it is |
| --- | --- |
| Client errors | Problem with the request. Opens the calls with outcome=client_error. |
| Server errors | The service failed. Opens the calls with outcome=server_error. |
| Rate limited | Too many at once. Opens the calls with outcome=rate_limited. |
| Find a request by ID | Opens Requests and logs with the cursor in the search field. A search covers the last 7 days. |

Requests and logs uses the same names. Each row shows the time, the request ID, the outcome, the response time and any error category and code; open a row for every recorded detail. See [Requests and logs](https://docs.sparset.ai/guide/requests-and-logs).

## What each outcome usually means

**Client error.** The deployment refused the request as it was sent. Compare your call with the example on the API tab: the call URL, the `Authorization` header with a current key, and the body. If the key was replaced or deleted, the old one no longer works. See [API keys](https://docs.sparset.ai/reference/api-keys).

**Server error.** The service could not answer. Your request may be fine. Check whether the deployment is down (below) before you change your code.

**Rate limited.** Too many requests arrived at once. Send fewer at the same time and try again later.

## Check whether the deployment is down

When a deployment is slow, down or has stopped reporting, a status card sits at the top of each of its tabs. When it is healthy there is no card.

- **Down.** “Requests are failing.” The API tab’s Endpoint card also says “Not answering right now, so calls will fail.”
- **Slow.** “Responses are slower than usual.”
- **No signal.** “Health checks have stopped reporting.” This page may be behind, and calls may still work.

The card’s second line says what Sparsey is doing, for example “Sparsey is restarting it now. Nothing for you to do.” When Sparsey can’t bring it back on its own, or isn’t watching the deployment, the line offers **Contact Sparset**. The card links to **See reliability** (on the Reliability tab, to **See requests**).

The **Reliability** tab has **Uptime** (“Has it stayed up, and is it up now?”) and **Interruptions** (“Has it gone down, and for how long?”). An interruption starts when health checks fail and ends when they pass again. See [A deployment](https://docs.sparset.ai/guide/a-deployment).

## Check whether Sparset itself has a problem

**Support** has a **Live status** card (“Is Sparset itself having trouble?”). It reads “All Sparset services are working.” or “Sparset is reporting a problem with its own services.” **Open live status** opens status.sparset.ai in a new tab.

Live status is about Sparset’s own services. Your deployment’s health is on its status card and its Reliability tab.

## Ask Support

Open **Support** and use **Report a problem**, or click **Contact Sparset** on the status card to open it with the deployment already chosen.

1. Pick the deployment under **Which deployment**.
2. Under **What happened**, say what you saw and when.
3. Paste the **Request ID** from Requests and logs, if you have one.
4. Click **Send report**.

See [Support](https://docs.sparset.ai/guide/support).

> **Do not send your key**
>
> Support does not need your API key. The form removes any key you paste before it is sent, but keep it out of the message anyway. The deployment, the time and the request ID are what help.
