# When something goes wrong

The problems people meet most, what each one means, and what to do.

## A deploy failed

The site’s status reads **Attention** and whatever was live stays live. On **Deploys**, open the failed row’s **View build log**: the last lines say why. Fix it in the repository and push, or press **Build again** if the failure was not in your code.

## My domain will not connect

- Check each record on **Domains**: the one still missing is marked. Copy the values from the screen, not from memory.
- DNS can take from a few minutes to a few hours to reach everyone. The screen keeps checking; **Check now** checks at once.
- A domain needs a Basic or Premium [site plan](https://www.stackide.com/docs/billing#site-plans).

## The Content API answers 402

The site is on its own domain with the Basic site plan, which has no Content API keys. Move it to Premium, or read it on its staging address while you build.

## An agent was refused

The refusal names the permission the call needed. Add it to the agent’s key on **Agents & API**, or reconnect a signed-in agent. See [Permissions](https://www.stackide.com/docs/agents/mcp#permissions).

## A push did not deploy

Check the site’s branch on **Deploys → Build**: only pushes to that branch deploy production. Press **Deploy latest commit** to deploy now.
