{"record":{"id":"fe18719c861c868d","repo":"paperclipai/paperclip","slug":"only-github-urls-and-local-paths-are-supported-for","errorCode":null,"errorMessage":"Only GitHub URLs and local paths are supported for import. Generic HTTP URLs are not supported. Use a GitHub or GitHub Enterprise URL (https://github.com/... or https://ghe.example.com/...) or a local directory path.","messagePattern":"Only GitHub URLs and local paths are supported for import\\. Generic HTTP URLs are not supported\\. Use a GitHub or GitHub Enterprise URL \\(https://github\\.com/\\.\\.\\. or https://ghe\\.example\\.com/\\.\\.\\.\\) or a local directory path\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1707,"sourceCode":"                  mode: \"new_company\" as const,\n                  newCompanyName: opts.newCompanyName?.trim() || null,\n                };\n\n          if (targetPayload.mode === \"existing_company\" && !targetPayload.companyId) {\n            throw new Error(\"Target existing company requires --company-id (or context default companyId).\");\n          }\n\n          let sourcePayload:\n            | { type: \"inline\"; rootPath?: string | null; files: Record<string, CompanyPortabilityFileEntry> }\n            | { type: \"github\"; url: string };\n          let chunkedZip: { zipBytes: Uint8Array; rootPath: string } | null = null;\n\n          const treatAsLocalPath = !isHttpUrl(from) && await pathExists(from);\n          const isGithubSource = looksLikeRepoUrl(from) || (isGithubShorthand(from) && !treatAsLocalPath);\n\n          if (isHttpUrl(from) || isGithubSource) {\n            if (!looksLikeRepoUrl(from) && !isGithubShorthand(from)) {\n              throw new Error(\n                \"Only GitHub URLs and local paths are supported for import. \" +\n                \"Generic HTTP URLs are not supported. Use a GitHub or GitHub Enterprise URL (https://github.com/... or https://ghe.example.com/...) or a local directory path.\",\n              );\n            }\n            sourcePayload = { type: \"github\", url: normalizeGithubImportSource(from, opts.ref) };\n          } else {\n            if (opts.ref?.trim()) {\n              throw new Error(\"--ref is only supported for GitHub import sources.\");\n            }\n            chunkedZip = await resolveChunkedImportZip(\n              from,\n              target === \"existing\"\n                ? EXISTING_COMPANY_CHUNKED_IMPORT_THRESHOLD_BYTES\n                : CHUNKED_IMPORT_THRESHOLD_BYTES,\n            );\n            if (chunkedZip) {\n              // Too large for one request: the zip travels as a chunked\n              // transfer, so the inline files map is never built or sent.","sourceCodeStart":1689,"sourceCodeEnd":1725,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1689-L1725","documentation":"Error \"Only GitHub URLs and local paths are supported for import. Generic HTTP URLs are not supported. Use a GitHub or GitHub Enterprise URL (https://github.com/... or https://ghe.example.com/...) or a local directory path.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1707 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a GitHub/GitHub Enterprise URL or a local directory path; generic HTTP URLs are not supported."],"exampleFix":null,"handlingStrategy":null,"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"}