{"record":{"id":"3cd053f4f9745c54","repo":"different-ai/openwork","slug":"collection-create-response-was-incomplete","errorCode":null,"errorMessage":"Collection create response was incomplete.","messagePattern":"Collection create response was incomplete\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx","lineNumber":452,"sourceCode":"      await runReauthableAction(\"create-marketplace\", async () => {\n        const { response, payload } = await requestJson(\n          \"/v1/marketplaces\",\n          {\n            method: \"POST\",\n            body: JSON.stringify({\n              name: input.name,\n              ...(input.description ? { description: input.description } : {}),\n            }),\n          },\n          15000,\n        );\n        if (!response.ok) {\n          throw getRequestError(payload, response, `Failed to create collection (${response.status}).`);\n        }\n        created = isRecord(payload) && isRecord(payload.item) ? parseMarketplace(payload.item) : null;\n      });\n      if (!created) {\n        throw new Error(\"Collection create response was incomplete.\");\n      }\n      return created;\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries({ queryKey: marketplaceQueryKeys.all });\n    },\n  });\n}\n\nexport function useUpdateMarketplace() {\n  const queryClient = useQueryClient();\n  const { runReauthableAction } = useOrgDashboard();\n\n  return useMutation({\n    mutationFn: async (input: { marketplaceId: string; name: string; description: string | null }): Promise<DenMarketplace> => {\n      let updated: DenMarketplace | null = null;\n      await runReauthableAction(\"update-marketplace\", async () => {\n        const { response, payload } = await requestJson(","sourceCodeStart":434,"sourceCodeEnd":470,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx#L434-L470","documentation":"Error \"Collection create response was incomplete.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:452 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}