{"record":{"id":"998446f5ff1d97ac","repo":"paperclipai/paperclip","slug":"this-hostname-is-not-allowed-for-this-paperclip-in","errorCode":null,"errorMessage":"This hostname is not allowed for this Paperclip instance. If you want to allow a hostname, run npx paperclipai allowed-hostname <host>.","messagePattern":"This hostname is not allowed for this Paperclip instance\\. If you want to allow a hostname, run npx paperclipai allowed-hostname <host>\\.","errorType":"http","errorClass":null,"httpStatus":403,"severity":"error","filePath":"server/src/middleware/private-hostname-guard.ts","lineNumber":91,"sourceCode":"\n    if (!hostname) {\n      const error = \"Missing Host header. If you want to allow a hostname, run npx paperclipai allowed-hostname <host>.\";\n      if (wantsJson) {\n        res.status(403).json({ error });\n      } else {\n        res.status(403).type(\"text/plain\").send(error);\n      }\n      return;\n    }\n\n    if (isLoopbackHostname(hostname) || allowSet.has(hostname)) {\n      next();\n      return;\n    }\n\n    const error = BLOCKED_HOSTNAME_MESSAGE;\n    if (wantsJson) {\n      res.status(403).json({ error });\n    } else {\n      res.status(403).type(\"text/plain\").send(error);\n    }\n  };\n}\n","sourceCodeStart":73,"sourceCodeEnd":97,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/middleware/private-hostname-guard.ts#L73-L97","documentation":"Error \"This hostname is not allowed for this Paperclip instance. If you want to allow a hostname, run npx paperclipai allowed-hostname <host>.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/middleware/private-hostname-guard.ts:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Allow the hostname by running npx paperclipai allowed-hostname <host>, then retry."],"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-14T00:17:10.932Z"}