Skip to main content

Troubleshooting

Incident triage (first 10 minutes)

  1. Classify impact: read-only, write-path, or data-risk.
  2. Isolate lane: API, DB, Queue/Worker, Auth.
  3. Capture evidence: request id, timestamp, actor, endpoint.
  4. Apply safest stabilizing fix first.

Quick diagnosis table

SymptomFast checkLikely root causeFirst fix
404 routephp artisan route:listwrong prefix/group in api filealign route declaration + clear route cache
401 authcheck bearer/session guardtoken mismatch or wrong guardverify sanctum/auth config and middleware
422 validationinspect response errorspayload contract mismatchsync request shape with endpoint contract
Reservation save failsDB logs + transaction tracedeadlock/constraint violationretry with backoff; review transaction scope
Queue not processedphp artisan queue:failedworker down/config mismatchrestart worker + replay failed jobs

Escalate immediately when

  • Potential data loss/corruption
  • Repeated production deadlock burst
  • Auth bypass suspicion
  • Queue replay causing duplicate irreversible side-effects