MCPcopy Create free account
hub / github.com/cloudflare/computer / reject

Method reject

packages/computer/src/runtime/bridge.ts:90–91  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

88 call(name: string, argsJson: string): Promise<string> {
89 const requestBytes = new TextEncoder().encode(argsJson).byteLength;
90 const reject = (message: string) =>
91 Promise.resolve(encodeBoundedError(new Error(message), this.#maxPayloadBytes));
92 if (this.#cancelled) return reject("Workspace execution is being cancelled.");
93 if (requestBytes > this.#maxPayloadBytes) {
94 return reject(`Workspace capability request exceeds ${this.#maxPayloadBytes} bytes.`);

Callers 15

appendFileMethod · 0.80
copyFileMethod · 0.80
notWiredFunction · 0.80
stub.test.tsFile · 0.80
getFunction · 0.80
#moduleHandleForMethod · 0.80
#handleForMethod · 0.80
notWiredFunction · 0.80
failingBackendFunction · 0.80
notWiredFunction · 0.80
execBackendFunction · 0.80
workspace.test.tsFile · 0.80

Calls 2

encodeBoundedErrorFunction · 0.85
resolveMethod · 0.80

Tested by 7

notWiredFunction · 0.64
notWiredFunction · 0.64
failingBackendFunction · 0.64
notWiredFunction · 0.64
execBackendFunction · 0.64
notWiredFunction · 0.64
destroyFunction · 0.64