paperclipai/paperclip · error

Cloudflare sandbox bridge request timed out after

Error message

Cloudflare sandbox bridge request timed out after ${requestTimeoutMs}ms.

What it means

Error "Cloudflare sandbox bridge request timed out after ${requestTimeoutMs}ms." thrown in paperclipai/paperclip.

Solutions

  1. Increase the request timeout or check bridge/network health; retry the request.

When it happens

Trigger: Thrown at packages/plugins/sandbox-providers/cloudflare/src/bridge-client.ts:136 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18). Data as JSON: /api/errors/e6394f108c280b79. Report an issue: GitHub.

Appendix: source

Thrown at packages/plugins/sandbox-providers/cloudflare/src/bridge-client.ts:136

    });
    const body = await parseJson(response);
    if (!response.ok) {
      const errorBody = isRecord(body) ? body as BridgeErrorBody : {};
      throw new CloudflareBridgeError({
        status: response.status,
        code: typeof errorBody.error === "string" ? errorBody.error : null,
        message:
          typeof errorBody.message === "string" && errorBody.message.trim().length > 0
            ? errorBody.message
            : `Cloudflare sandbox bridge request failed with HTTP ${response.status}.`,
        details: errorBody.details,
      });
    }
    return body as T;
  } catch (error) {
    if (error instanceof CloudflareBridgeError) throw error;
    if ((error as { name?: string } | null)?.name === "AbortError") {
      throw new Error(
        `Cloudflare sandbox bridge request timed out after ${requestTimeoutMs}ms.`,
      );
    }
    throw error;
  } finally {
    clearTimeout(timeout);
  }
}

async function requestResponse(
  config: CloudflareDriverConfig,
  path: string,
  init: RequestInit,
  extraHeaders: BridgeClientHeaders = {},
): Promise<Response> {
  const controller = new AbortController();
  const requestTimeoutMs = resolveRequestTimeoutMs(config, path, init);
  const timeout = setTimeout(() => controller.abort(), requestTimeoutMs);

View on GitHub (pinned to 120ae5428f)