Troubleshooting
Common problems and step-by-step solutions for EmuView authentication, queries, and deployment.
#Troubleshooting
When something goes wrong, start here. This section covers common problems grouped by category, each with a clear symptom, cause, and fix.
#How to use this section
Each troubleshooting page follows a consistent format:
- Problem — What you're experiencing (matched to what you'd search for)
- Cause — Why it happens
- Fix — Step-by-step instructions to resolve it
- Prevention — How to avoid it in the future
#Common issues by category
#Authentication errors
401 unauthorized— Missing or invalid Bearer token403 forbidden— Valid token but insufficient permissions403 signup_forbidden— Registration blocked because the caller's role can't create users429 rate_limited— Too many authentication attempts (5 per minute per IP)
#Query and data access errors
404 collection_not_found— Collection name doesn't match any registered schema404 record_not_found— Record ID doesn't exist or is hidden by row-level security422 validation_error— Request body failed field validation400 invalid_name— Collection or field name contains invalid characters
#Deployment issues
- Worker deployment fails — Check
wrangler.tomlbindings match your Cloudflare account - D1 migration errors — Run migrations in order with
wrangler d1 migrations apply - R2 upload failures — Verify the
FILE_STORAGEbinding points to an existing R2 bucket
#Scheduled tasks aren't running
- No scheduled backups appear, though the schedule is on — the hourly maintenance tick has stalled
- A scheduled automation flow silently stopped firing — its Durable Object alarm was never re-armed
- Runs stuck in
pending/runningforever — nothing is reaping them Handler does not export a scheduled() functionin the Worker logs — the cron trigger has no reachable handler
#Debugging tips
- Check the
X-Request-IDheader on error responses — use it to search logs - Enable verbose logging in the dashboard under Settings → System Health
- For automation flow failures, check Automation → Runs for step-by-step execution logs
- The error response always includes a machine-readable
errorcode and a human-readablemessage
#Guides in this section
- Authentication errors — sign-up 403s, rate limiting, API key permissions, and stale sessions
- Query and data access errors — invisible collections, missing records, and CORS problems
- Deployment issues — local dev secrets, database bindings, script execution, and rollback
- Scheduled tasks aren't running — a stalled hourly maintenance tick, missing cron triggers, and tasks that fail every hour