RocketChat/Rocket.Chat · error · MarketplaceAppsError

Marketplace_Internal_Error

Error message

Marketplace_Internal_Error

What it means

MarketplaceAppsError 'Marketplace_Internal_Error' thrown when the marketplace apps-list request returns HTTP 500 whose body code is one of the internal cloud codes [266, 256, 166, 221, 257, 320]. These codes represent known cloud-side processing failures; the server maps them to a single stable error so the UI can show 'marketplace had an internal problem' rather than raw cloud noise. The full response is logged as 'Error fetching marketplace apps'.

Solutions

  1. Retry after a short wait — most internal cloud errors are transient.
  2. Check Rocket.Chat cloud status/announcements for ongoing incidents.
  3. Capture the logged status+response and report to support if it persists for hours, including which filters/pages trigger it.
  4. Meanwhile install needed apps from direct zip upload.
Defensive patterns

Strategy: retry

Try / catch

let lastErr;
for (let i = 0; i < 3; i++) {
  try {
    return await fetchMarketplaceApps();
  } catch (e) {
    if (e instanceof MarketplaceAppsError && e.message === 'Marketplace_Internal_Error') {
      lastErr = e;
      await sleep((i + 1) * 2000);
      continue;
    }
    throw e;
  }
}
throw lastErr;

Prevention

When it happens

Trigger: Listing marketplace apps while the cloud's apps service errors internally (DB issues, dependency failures upstream). Nothing the client sends can cause these codes except the request itself; it is a transient/upstream-state condition by definition.

Common situations: During cloud incidents or deployments; specific apps triggering a cloud bug (then every listing that includes them fails); regional cloud degradation.

Related errors


AI-assisted analysis of RocketChat/Rocket.Chat@b2c16d5842 (2026-08-18). Data as JSON: /api/errors/db50f53bb6395fb3. Report an issue: GitHub.

Appendix: source

Thrown at apps/meteor/ee/server/apps/marketplace/fetchMarketplaceApps.ts:192

	}

	const response = await request.json();

	Apps.getRocketChatLogger().error({ msg: 'Error fetching marketplace apps', status: request.status, response });

	// TODO: Refactor cloud to return a proper error code on unsupported version
	if (request.status === 426 && 'errorMsg' in response && response.errorMsg === 'unsupported version') {
		throw new MarketplaceUnsupportedVersionError();
	}

	if (request.status === 400 && response.code === 200) {
		throw new MarketplaceAppsError('Marketplace_Invalid_Apps_Engine_Version');
	}

	const INTERNAL_MARKETPLACE_ERROR_CODES = [266, 256, 166, 221, 257, 320];

	if (request.status === 500 && INTERNAL_MARKETPLACE_ERROR_CODES.includes(response.code)) {
		throw new MarketplaceAppsError('Marketplace_Internal_Error');
	}

	throw new MarketplaceAppsError('Marketplace_Failed_To_Fetch_Apps');
}

View on GitHub (pinned to b2c16d5842)