# Error Handling Reference

> Optimize function code, use Edge Runtime, or upgrade plan for longer timeouts.

- Skill: `tools-only/error-handling-reference-6` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/error-handling-reference-6`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/error-handling-reference-6/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/error-handling-reference-6

---

# Error Handling Reference

### Build Failed
**Error Message:**
```
Command 'npm run build' exited with 1
```

**Cause:** Build script failed due to errors in code or dependencies

**Solution:**
```bash
Check build logs in Vercel dashboard. Run 'npm run build' locally to reproduce.
```

---

### Function Timeout
**Error Message:**
```
FUNCTION_INVOCATION_TIMEOUT
```

**Cause:** Serverless function exceeded execution time limit

**Solution:**
Optimize function code, use Edge Runtime, or upgrade plan for longer timeouts.

---

### Domain Verification Failed
**Error Message:**
```
Domain verification failed
```

**Cause:** DNS records not configured correctly

**Solution:**
```typescript
Add required CNAME or A records. Wait for DNS propagation (up to 48h).
```
