{"record":{"id":"2cb2f2ec11479523","repo":"different-ai/openwork","slug":"connector-sync-response-was-incomplete","errorCode":null,"errorMessage":"Connector sync response was incomplete.","messagePattern":"Connector sync response was incomplete\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx","lineNumber":1037,"sourceCode":"  const { runReauthableAction } = useOrgDashboard();\n\n  return useMutation({\n    mutationFn: async (connectorInstanceId: string) => {\n      let enqueuedCount: number | null = null;\n      await runReauthableAction(\"sync-connector-instance\", async () => {\n        const { response, payload } = await requestJson(\n          `/v1/connector-instances/${encodeURIComponent(connectorInstanceId)}/sync-now`,\n          { method: \"POST\" },\n          15000,\n        );\n\n        if (!response.ok) {\n          throw getRequestError(payload, response, `Failed to sync connector instance (${response.status}).`);\n        }\n\n        const item = isRecord(payload) && isRecord(payload.item) ? payload.item : null;\n        if (!item || typeof item.enqueuedCount !== \"number\") {\n          throw new Error(\"Connector sync response was incomplete.\");\n        }\n        enqueuedCount = item.enqueuedCount;\n      });\n      if (enqueuedCount === null) {\n        throw new Error(\"Connector sync response was incomplete.\");\n      }\n      return enqueuedCount;\n    },\n    onSuccess: (_result, connectorInstanceId) => {\n      queryClient.invalidateQueries({ queryKey: integrationQueryKeys.all });\n      queryClient.invalidateQueries({\n        queryKey: integrationQueryKeys.connectorInstanceConfiguration(connectorInstanceId),\n      });\n    },\n  });\n}\n\nexport function useRemoveConnectorInstance() {","sourceCodeStart":1019,"sourceCodeEnd":1055,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx#L1019-L1055","documentation":"Error \"Connector sync response was incomplete.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx:1037 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"}