Skip to main content

userCodeFaults

Failures of code this app's users wrote, newest first, across all three engines (model expressions, studio WASM, player WASM). Each row carries what ran, what went wrong, whose problem it is, whether retrying could help, and what the run cost against what it was allowed. Requires the org 'view_compute_diagnostics' permission.

userCodeFaults(
appId: BigInt!
engine: UserCodeFaultEngine
kind: UserCodeFaultKind
blame: UserCodeFaultBlame
subject: String
windowMinutes: Int
limit: Int
offset: Int
): [UserCodeFaultRecord!]!

Arguments

userCodeFaults.appId ● BigInt! non-null scalar

The app (tenant) whose faults to read.

userCodeFaults.engine ● UserCodeFaultEngine enum

Only faults from this engine.

userCodeFaults.kind ● UserCodeFaultKind enum

Only faults of this kind.

userCodeFaults.blame ● UserCodeFaultBlame enum

Only faults with this owner. 'platform' is the filter to reach for before reporting a problem to us.

userCodeFaults.subject ● String scalar

Only faults from this function name (expression engine) or module name (either WASM engine).

userCodeFaults.windowMinutes ● Int scalar

Look-back window in minutes (max 1440). Omit for all retained faults.

userCodeFaults.limit ● Int scalar

Max faults to return (default 50, max 200).

userCodeFaults.offset ● Int scalar

Number of faults to skip (pagination).

Type

UserCodeFaultRecord object

One failure of code a user wrote, from any of the three engines. Replaces three disagreeing surfaces: a bare error string on the invoke path, a run table that recorded failures and not successes, and a last_error slot the next success cleared.