⚠️
TypeError — Uncaught exception in request handler
Process exited with code 1 · NODE_ENV=production
TypeError: Cannot read properties of null (reading 'user')
at Object.<anonymous> (/app/src/handlers/orderHandler.ts:78:32)
Stack Trace
OrderHandler.processRequest
/app/src/handlers/orderHandler.ts
:78:32
RequestRouter.dispatch
/app/src/router.ts
:34:18
async Server.fetch
/app/src/index.ts
:22:5
processTicksAndRejections
node:internal/process/task_queues
:96:5
runMicrotasks
node:internal/process/task_queues
:140:5
Source Context — /app/src/handlers/orderHandler.ts
75
const session = await getSession(req);
76
// session may be null if token expired
77
const order = await fetchOrder(req.params.id);
78
const userId = session.user.id;
// ← session is null
79
return respond(order, userId);
Environment
NODE_ENV
production
APP_VERSION
1.4.2 — null check removed in latest commit
REQUEST_PATH
/api/orders/8f3a1c
SESSION_TOKEN
null (expired or missing)
POD_NAME
lyoncraft-app-7d9f6b-xk2pv
POD_NAMESPACE
production