{"record":{"id":"e2c84e51a674083c","repo":"Kong/insomnia","slug":"no-content-to-import","errorCode":null,"errorMessage":"No content to import","messagePattern":"No content to import","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/routes/import.scan.tsx","lineNumber":142,"sourceCode":"        }\n      }\n\n      contentList.push({\n        contentStr,\n        oriFileName: window.path.basename(filePath),\n        oriFilePath: filePath,\n      });\n    }\n  } else {\n    // from clipboard\n    contentList.push({\n      contentStr: window.clipboard.readText(),\n      oriFileName: 'clipboard',\n    });\n  }\n\n  if (contentList.length === 0) {\n    throw new Error('No content to import');\n  }\n\n  const result = await scanResources(contentList);\n\n  return result;\n};\n\ninterface ImportScanInputData {\n  source: ImportSourceType;\n  uri?: string;\n  curl?: string;\n  mcp?: string;\n  filePaths?: string | string[];\n  postmanArchiveFile?: string | null;\n}\n\nexport async function clientAction({ request }: ActionFunctionArgs) {\n  try {","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/routes/import.scan.tsx#L124-L160","documentation":"Error \"No content to import\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/routes/import.scan.tsx:142 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":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}