different-ai/openwork · error

Collection create response was incomplete.

Error message

Collection create response was incomplete.

What it means

Error "Collection create response was incomplete." thrown in different-ai/openwork.

Source

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

      await runReauthableAction("create-marketplace", async () => {
        const { response, payload } = await requestJson(
          "/v1/marketplaces",
          {
            method: "POST",
            body: JSON.stringify({
              name: input.name,
              ...(input.description ? { description: input.description } : {}),
            }),
          },
          15000,
        );
        if (!response.ok) {
          throw getRequestError(payload, response, `Failed to create collection (${response.status}).`);
        }
        created = isRecord(payload) && isRecord(payload.item) ? parseMarketplace(payload.item) : null;
      });
      if (!created) {
        throw new Error("Collection create response was incomplete.");
      }
      return created;
    },
    onSuccess: () => {
      queryClient.invalidateQueries({ queryKey: marketplaceQueryKeys.all });
    },
  });
}

export function useUpdateMarketplace() {
  const queryClient = useQueryClient();
  const { runReauthableAction } = useOrgDashboard();

  return useMutation({
    mutationFn: async (input: { marketplaceId: string; name: string; description: string | null }): Promise<DenMarketplace> => {
      let updated: DenMarketplace | null = null;
      await runReauthableAction("update-marketplace", async () => {
        const { response, payload } = await requestJson(

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:452 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/3cd053f4f9745c54. Report an issue: GitHub.