{"record":{"id":"9e4e29ea5e6b0794","repo":"paperclipai/paperclip","slug":"import-request-returned-no-data","errorCode":null,"errorMessage":"Import request returned no data.","messagePattern":"Import request returned no data\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1862,"sourceCode":"            }\n          }\n\n          const importApiPath = resolveCompanyImportApiPath({\n            dryRun: false,\n            targetMode: targetPayload.mode,\n            companyId: targetPayload.mode === \"existing_company\" ? targetPayload.companyId : null,\n          });\n          const imported = transferId\n            ? await ctx.api.post<CompanyPortabilityImportResult>(\n                `/api/companies${companyImportTransferApplyPath(transferId)}`,\n                { ...transferMeta, selectedFiles, adapterOverrides },\n              )\n            : await ctx.api.post<CompanyPortabilityImportResult>(importApiPath, {\n                ...previewPayload,\n                adapterOverrides,\n              });\n          if (!imported) {\n            throw new Error(\"Import request returned no data.\");\n          }\n          const tc = getTelemetryClient();\n          if (tc) {\n            const isPrivate = sourcePayload.type !== \"github\";\n            const sourceRef = sourcePayload.type === \"github\" ? sourcePayload.url : from;\n            trackCompanyImported(tc, { sourceType: sourcePayload.type, sourceRef, isPrivate });\n          }\n          let companyUrl: string | undefined;\n          if (!ctx.json) {\n            try {\n              const importedCompany = await ctx.api.get<Company>(apiPath`/api/companies/${imported.company.id}`);\n              const issuePrefix = importedCompany?.issuePrefix?.trim();\n              if (issuePrefix) {\n                companyUrl = buildCompanyDashboardUrl(ctx.api.apiBase, issuePrefix);\n              }\n            } catch {\n              companyUrl = undefined;\n            }","sourceCodeStart":1844,"sourceCodeEnd":1880,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1844-L1880","documentation":"The final import apply POST returned a falsy body, so although the request may have been processed the CLI has no result payload and refuses to report success.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1862 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the import; if it persists, check server logs and API connectivity."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}