{"record":{"id":"28426cf11969fe5f","repo":"paperclipai/paperclip","slug":"gateway-not-connected","errorCode":null,"errorMessage":"gateway not connected","messagePattern":"gateway not connected","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/openclaw-gateway/src/server/execute.ts","lineNumber":727,"sourceCode":"      }),\n      timeoutMs,\n      \"gateway websocket open timeout\",\n    );\n\n    const nonce = await withTimeout(this.challengePromise, timeoutMs, \"gateway connect challenge timeout\");\n    const signedConnectParams = buildConnectParams(nonce);\n\n    const hello = await this.request<Record<string, unknown> | null>(\"connect\", signedConnectParams, {\n      timeoutMs,\n    });\n\n    return hello;\n  }\n\n  async request<T>(\n    method: string,\n    params: unknown,\n    opts: GatewayClientRequestOptions,\n  ): Promise<T> {\n    if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {\n      throw new Error(\"gateway not connected\");\n    }\n\n    const id = randomUUID();\n    const frame: GatewayRequestFrame = {\n      type: \"req\",\n      id,\n      method,\n      params,\n    };\n\n    const payload = JSON.stringify(frame);\n    const requestPromise = new Promise<T>((resolve, reject) => {\n      const timer =\n        opts.timeoutMs > 0\n          ? setTimeout(() => {","sourceCodeStart":709,"sourceCodeEnd":745,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapters/openclaw-gateway/src/server/execute.ts#L709-L745","documentation":"Error \"gateway not connected\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapters/openclaw-gateway/src/server/execute.ts:712 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start or reconnect the OpenClaw gateway before executing.","Check gateway configuration and connectivity."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}