{"record":{"id":"39dff219b40d82e8","repo":"different-ai/openwork","slug":"disconnect-response-was-incomplete","errorCode":null,"errorMessage":"Disconnect response was incomplete.","messagePattern":"Disconnect response was incomplete\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx","lineNumber":911,"sourceCode":"          {\n            method: \"POST\",\n            body: JSON.stringify({ reason: \"Disconnected from Den Web integrations.\" }),\n          },\n          20000,\n        );\n        if (!response.ok) {\n          throw getRequestError(payload, response, `Failed to disconnect integration (${response.status}).`);\n        }\n        result = connectionId;\n        return;\n      }\n\n      await simulateLatency(300);\n      mockConnections = mockConnections.filter((entry) => entry.id !== connectionId);\n        result = connectionId;\n      });\n      if (!result) {\n        throw new Error(\"Disconnect response was incomplete.\");\n      }\n      return result;\n    },\n    onSuccess: () => {\n      queryClient.invalidateQueries({ queryKey: integrationQueryKeys.all });\n      queryClient.invalidateQueries({ queryKey: [\"plugins\"] });\n    },\n  });\n}\n\nexport function useConnectorInstanceConfiguration(connectorInstanceId: string | null) {\n  return useQuery({\n    enabled: Boolean(connectorInstanceId),\n    queryKey: integrationQueryKeys.connectorInstanceConfiguration(connectorInstanceId),\n    queryFn: async (): Promise<ConnectorInstanceConfiguration> => {\n      const { response, payload } = await requestJson(\n        `/v1/connector-instances/${encodeURIComponent(connectorInstanceId ?? \"\")}/configuration`,\n        { method: \"GET\" },","sourceCodeStart":893,"sourceCodeEnd":929,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx#L893-L929","documentation":"Error \"Disconnect response was incomplete.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_components/integration-data.tsx:911 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"}