Issues
error

TypeError

TypeError: Cannot read properties of null (reading 'totalize')

rails-shopnode
Events
2
First seen
2026-04-27 10:02:07.448
Last seen
2026-04-27 10:02:39.299
Status
unresolved
Stack trace
/private/tmp/sentry-test.mjs:22in ?in app
15 Sentry.setTag('feature', 'checkout')
16 Sentry.addBreadcrumb({ category: 'auth', message: 'user signed in', level: 'info' })
17 Sentry.addBreadcrumb({ category: 'http', message: 'GET /products 200', data: { duration_ms: 12 } })
18
19 try {
20 const obj = null
21 // intentional NPE-style error
22 obj.totalize()
23 } catch (e) {
24 Sentry.captureException(e)
25 }
26
27 await Sentry.flush(5000)
28 console.log('flushed')
node:internal/modules/esm/module_job:437in ModuleJob.run
node:internal/modules/esm/loader:639in onImport.tracePromise.__proto__
node:internal/modules/run_main:101in asyncRunEntryPointWithESMLoader
Context
Tags
feature=checkout
User
{
  "id": "user-42",
  "email": "mohd@cr4fts.com"
}
Contexts
{
  "trace": {
    "trace_id": "101d77aebc994bf39e7addfa92005fe4",
    "span_id": "88bd3fb7fd89863d"
  },
  "runtime": {
    "name": "node",
    "version": "v25.9.0"
  },
  "app": {
    "app_start_time": "2026-04-27T10:02:38.216Z",
    "app_memory": 103645184,
    "free_memory": 3648815104
  },
  "os": {
    "kernel_version": "25.4.0",
    "name": "macOS",
    "version": "26.4.1",
    "build": "25E253"
  },
  "device": {
    "boot_time": "2026-04-24T19:43:30.390Z",
    "arch": "arm64",
    "memory_size": 17179869184,
    "free_memory": 651247616,
    "processor_count": 10,
    "cpu_description": "Apple M4",
    "processor_frequency": 2400
  },
  "culture": {
    "locale": "en-US",
    "timezone": "Africa/Nairobi"
  },
  "cloud_resource": {}
}
Recent events (2)
2026-04-27 10:02:39.299rails-shop@v1.2.3production56173ca968684857ad10cdd6333ef1f5
2026-04-27 10:02:07.448rails-shop@v1.2.3production7d1c0994a8a940c9a417403a954b65e2