{"record":{"id":"0ee4a060424319f2","repo":"paperclipai/paperclip","slug":"export-request-returned-no-data","errorCode":null,"errorMessage":"Export request returned no data","messagePattern":"Export request returned no data","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1615,"sourceCode":"        false,\n      )\n      .action(async (companyId: string, opts: CompanyExportOptions) => {\n        try {\n          const ctx = resolveCommandContext(opts);\n          const include = parseInclude(opts.include);\n          const exported = await ctx.api.post<CompanyPortabilityExportResult>(\n            apiPath`/api/companies/${companyId}/export`,\n            {\n              include,\n              skills: parseCsvValues(opts.skills),\n              projects: parseCsvValues(opts.projects),\n              issues: parseCsvValues(opts.issues),\n              projectIssues: parseCsvValues(opts.projectIssues),\n              expandReferencedSkills: Boolean(opts.expandReferencedSkills),\n            },\n          );\n          if (!exported) {\n            throw new Error(\"Export request returned no data\");\n          }\n          await confirmOverwriteExportDirectory(opts.out!, { force: Boolean(opts.force) });\n          await writeExportToFolder(opts.out!, exported);\n          printOutput(\n            {\n              ok: true,\n              out: path.resolve(opts.out!),\n              rootPath: exported.rootPath,\n              filesWritten: Object.keys(exported.files).length,\n              paperclipExtensionPath: exported.paperclipExtensionPath,\n              warningCount: exported.warnings.length,\n            },\n            { json: ctx.json },\n          );\n          if (!ctx.json && exported.warnings.length > 0) {\n            for (const warning of exported.warnings) {\n              console.log(`warning=${warning}`);\n            }","sourceCodeStart":1597,"sourceCodeEnd":1633,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1597-L1633","documentation":"The company export POST returned a falsy body from the API client, so the command has no export result object to unpack and files to write; a sentinel null-guard on the API response.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1615 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the export; if it persists, check server health 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"}