Problem code 'sync-failed' ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts, tables/problems.json and services/onsite-scripter/scripts/contract-docs-what-to-do.json by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

A member of ProblemCode · stable · since 2.0.0

An internal failure while the runtime applied a state write, recorded or look-only (setSceneModel, undo, Collection.set, stage.set, attach, a rule), through session or a tx, before its commit point: it, or the transaction holding it, rolled back with reason 'internal-error'; or while it applied a commit the runtime makes itself (a commit: 'runtime' drag's, a 'restore'), which rolls back, carries that commit's op (a drag's also its unit's node, the op its 'drag:end' carried) and releases a held drop pose; or when a member's on-demand code failed to load, for a write or a synchronous call that waited for it (spec section 6.3).

What to do ​

An internal failure: the state write (or its transaction) rolled back with reason 'internal-error' and the scene shows the state before it, or a member's on-demand code failed to load. Make the same call once more, as the setSceneModel example does, and report it when that fails too.

ts
const r = await session.setSceneModel(model);
if (r.outcome === 'rolled-back' && r.reason === 'internal-error') await session.setSceneModel(model);

Where the declaration names it ​

The set is open: handle a code you don't know ('other').

Recorded by ​