koala73/worldmonitor · error · Error

Account changed while acknowledging the API plan-limit notic

Error message

Account changed while acknowledging the API plan-limit notice. Try again.

What it means

UI service error in acknowledgePlanLimitNotice (via assertAccountStillCurrent): the authenticated user changed while the acknowledgment was in flight, so it was aborted rather than acknowledging under the wrong account.

Source

Thrown at src/services/api-plan-limit-notices.ts:57

  if (!client || !api) return [];
  if (!await waitForConvexAuthForUser(userId)) {
    assertAccountStillCurrent(userId, 'loading API plan-limit notices');
    throw new Error('Authentication unavailable while loading API plan-limit notices. Try again.');
  }
  return settleAccountOperation(
    userId,
    'loading API plan-limit notices',
    () => client.query((api as any).apiPlanLimitNotices.listCurrentForUser, {}),
  );
}

export async function acknowledgePlanLimitNotice(noticeId: string): Promise<void> {
  const userId = getCurrentClerkUser()?.id;
  if (!userId) throw new Error('Sign in to acknowledge API plan-limit notices.');
  const [client, api] = await Promise.all([getConvexClient(), getConvexApi()]);
  if (!client || !api) throw new Error('Convex unavailable');
  if (!await waitForConvexAuthForUser(userId)) {
    throw new Error('Account changed while acknowledging the API plan-limit notice. Try again.');
  }
  await settleAccountOperation(
    userId,
    'acknowledging the API plan-limit notice',
    () => client.mutation((api as any).apiPlanLimitNotices.acknowledgeNotice, { noticeId }),
  );
}

View on GitHub (pinned to eeab0a219f)

Solutions

  1. Retry after the account switch settles
  2. Avoid changing accounts mid-operation
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/services/api-plan-limit-notices.ts:57 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of koala73/worldmonitor@eeab0a219f (2026-08-21). Data as JSON: /api/errors/66ac82566db9498f. Report an issue: GitHub.