actualbudget/actual · error · Error

getSyncError(result.error.reason, id, result.error.meta)

Error message

getSyncError(result.error.reason, id, result.error.meta)

What it means

Error "getSyncError(result.error.reason, id, result.error.meta)" thrown in actualbudget/actual.

Source

Thrown at packages/loot-core/src/server/api.ts:279

    );
  }
  await handlers['load-budget']({ id: result.id });
};

handlers['api/get-budgets'] = async function () {
  const budgets = await handlers['get-budgets']();
  const files = (await handlers['get-remote-files']()) || [];
  return [
    ...budgets.map(file => budgetModel.toExternal(file)),
    ...files.map(file => remoteFileModel.toExternal(file)).filter(file => file),
  ];
};

handlers['api/sync'] = async function () {
  const { id } = prefs.getPrefs();
  const result = await handlers['sync-budget']();
  if (result.error) {
    throw withErrorCode(
      new Error(getSyncError(result.error.reason, id, result.error.meta)),
      result.error.reason,
    );
  }
};

handlers['api/bank-sync'] = async function (args) {
  const batchSync = args?.accountId == null;
  const allErrors = [];

  if (!batchSync) {
    const { errors } = await handlers['accounts-bank-sync']({
      ids: [args.accountId],
    });

    allErrors.push(...errors);
  } else {
    const accountsData = await handlers['accounts-get']();

View on GitHub (pinned to d4334cb6e6)

When it happens

Trigger: Thrown at packages/loot-core/src/server/api.ts:279 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of actualbudget/actual@d4334cb6e6 (2026-08-29). Data as JSON: /api/errors/c1cc07de0888df71. Report an issue: GitHub.