Skip to content

[$250] [Sentry: APP-6Z4] HybridApp iOS TypeError: this.fetchReport() undefined in ReportController.js #91397

@mountiny

Description

@mountiny

Sentry

https://expensify.sentry.io/issues/APP-6Z4

Impact (snapshot at filing)

  • Users (total since first seen): 1,029
  • Events: 1,303
  • Users (last 14d): 313
  • First seen: 2026-03-04
  • Last seen: now (ongoing)
  • Platform: iOS, hybrid_app
  • App version(s): seen on 9.3.25 through 9.3.78
  • Mechanism: nsexception, fatal (unhandled JS exception bridged to native)

Stack trace (top frames, first-party only)

app/Controllers/ReportController.js:1770   this.fetchReport().then(...)
  -> -[YAPL performBecomeActiveStateCallback]   (app resume / foreground)
  -> -[YAPLJS callFunction:args:]
  -> -[YAPL logException:]

Suspected cause

this.fetchReport() is invoked from a lifecycle callback when the app becomes active, but this is undefined or the controller instance is not bound — so .then is called on undefined. Likely a lost this context in the become-active handler (missing .bind(this) / arrow function) or a race where the controller is torn down before the callback runs.

Reproduction

Unknown deterministically — Sentry shows it firing on app resume (performBecomeActiveStateCallback) across many iOS versions and app releases. See linked Sentry events for session context.

Related

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @gijoe0295
Issue OwnerCurrent Issue Owner: @gijoe0295

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type
No fields configured for issues without a type.

Projects

Status

SUBISSUE

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions