Skip to Content
Technical docsTroubleshooting

Troubleshooting

SymptomLikely cause
Upload button stays disabledMissing date recorded, or /api/upload/context missing name/EDC (open via portal link)
Works in desktop DevTools, fails on iPhoneUse real device testing; ensure mobile file input path; empty MIME handling
Graph / SPO license errorsReceiving account lacks OneDrive/SharePoint capability
DomainNotLinked email errorSender domain not connected to the ACS resource used by the connection string
OneDrive reconnect keeps old accountClear token cache path / Blob; use Change receiving OneDrive flow
HMR blocked from phone IPAdd host to allowedDevOrigins in next.config.ts

Smoke-test checklist (production)

  • Admin can sign in at /setup
  • Receiving OneDrive shows connected
  • Child names load from Excel
  • Generate link → open on phone Safari → upload small video
  • File appears in OneDrive with expected name
  • Notification email arrives with working link
  • Same link cannot upload again

Known hardening notes

  1. GET / DELETE /api/links — consider requiring admin auth before wide public deployment.
  2. GET /api/config — public; exposes limits and allowlisted admin emails.
  3. lib/server.ts size — split Graph, Redis links, and OAuth when making large changes.
  4. Default admin email in code defaults — prefer env/Settings as source of truth.
  5. Portal required for naming — uploads without a portal link token cannot resolve the GMA filename.
  6. Email is best-effort — monitor server logs for ACS errors.
  7. Secrets — never commit .env.local; rotate ACS keys and Azure client secrets if exposed.
Last updated on