different-ai/openwork · error

Failed to load collection (${response.status}).

Error message

Failed to load collection (${response.status}).

What it means

Error "Failed to load collection (${response.status})." thrown in different-ai/openwork.

Source

Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:227

        branch: asString(sourceRecord.branch),
      }
    : null;

  return { marketplace, plugins, source };
}

export function useMarketplace(marketplaceId: string | null) {
  return useQuery({
    enabled: Boolean(marketplaceId),
    queryKey: marketplaceQueryKeys.resolved(marketplaceId ?? "none"),
    queryFn: async (): Promise<MarketplaceResolved> => {
      const { response, payload } = await requestJson(
        `/v1/marketplaces/${encodeURIComponent(marketplaceId ?? "")}/resolved`,
        { method: "GET" },
        15000,
      );
      if (!response.ok) {
        throw new Error(getErrorMessage(payload, `Failed to load collection (${response.status}).`));
      }

      return parseMarketplaceResolvedPayload(payload);
    },
  });
}

function parseAccessGrant(entry: unknown): MarketplaceAccessGrant | null {
  if (!isRecord(entry)) return null;
  const id = asString(entry.id);
  const role = asString(entry.role);
  if (!id || !role) return null;
  if (role !== "viewer" && role !== "editor" && role !== "manager") return null;
  return {
    id,
    orgMembershipId: asString(entry.orgMembershipId),
    teamId: asString(entry.teamId),
    orgWide: Boolean(entry.orgWide),

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:227 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01). Data as JSON: /api/errors/cada643fd16271ba. Report an issue: GitHub.