paperclipai/paperclip · error · Error
networkScope="allowlist" requires at least one valid…
Error message
networkScope="allowlist" requires at least one valid networkAllowlist hostname or HTTP(S) networkTrustedUrl.
What it means
startNetworkAllowlistProxy combined the allowlist and trusted-URL rules and got zero rules, so an 'allowlist' network scope would allow nothing and is treated as misconfiguration.
Solutions
- Add at least one valid networkAllowlist hostname or HTTP(S) networkTrustedUrl when using networkScope="allowlist".
- Set networkScope to "deny" if no network access is needed.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/adapter-utils/src/local-process-sandbox.ts:241 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/1e154463a89743d2.
Report an issue: GitHub.
Appendix: source
Thrown at packages/adapter-utils/src/local-process-sandbox.ts:241
"Content-Type: application/json; charset=utf-8",
`Content-Length: ${Buffer.byteLength(body)}`,
"",
body,
].join("\r\n");
}
async function startNetworkAllowlistProxy(
allowlist: string[],
trustedUrls: string[],
socketPath: string,
): Promise<NetworkAllowlistProxy> {
assertUnixSocketPathLength(socketPath);
const rules = [
...allowlist.map(parseNetworkAllowlistEntry),
...trustedUrls.map(parseTrustedNetworkUrl).filter((rule): rule is NetworkAllowlistRule => rule !== null),
];
if (rules.length === 0) {
throw new Error(
'networkScope="allowlist" requires at least one valid networkAllowlist hostname or HTTP(S) networkTrustedUrl.',
);
}
const server = http.createServer((request, response) => {
let target: URL;
try {
target = new URL(request.url ?? "");
} catch {
writeProxyError(response, 400, "invalid_request_url", "Paperclip sandbox proxy requires an absolute request URL.");
return;
}
const port = target.port || (target.protocol === "https:" ? "443" : "80");
if (target.protocol !== "http:") {
writeProxyError(response, 400, "https_requires_connect", "HTTPS targets must use CONNECT through the Paperclip sandbox proxy.");
return;
}
if (!isNetworkTargetAllowed(target.hostname, port, rules)) {
writeProxyError(response, 403, "network_target_denied", "Network target denied by Paperclip sandbox policy.");View on GitHub (pinned to 120ae5428f)