openclaw - 💡(How to fix) Fix Android: unknown requestId error during pairing (Advance Setup, no Google Play) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70476Fetched 2026-04-24 05:57:35
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

[openclaw] Failed to start CLI: GatewayClientRequestError: unknown requestId at GatewayClient.handleMessage (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:604:25) at WebSocket.<anonymous> (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:287:35)

Code Example

[openclaw] Failed to start CLI: GatewayClientRequestError: unknown requestId
 at GatewayClient.handleMessage (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:604:25)
 at WebSocket.<anonymous> (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:287:35)
RAW_BUFFERClick to expand / collapse

Describe the bug

Using latest Android source code (v2026.4.21) built from source. In mainland China without Google Play services, using Advance Setup flow:

  1. Run openclaw qr on MacBook to get Setup Code
  2. Paste Setup Code in Android app
  3. Next → connect step → approve requestId per guide
  4. After approval, stuck with repeated error:

Expected behavior

After approving the requestId, the app should connect to the Gateway and complete pairing.

Actual behavior

After approving requestId, the app shows this error repeatedly:

[openclaw] Failed to start CLI: GatewayClientRequestError: unknown requestId
 at GatewayClient.handleMessage (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:604:25)
 at WebSocket.<anonymous> (file:///Users/lr/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/client-D-67f4NF.js:287:35)

Steps to reproduce

  1. Build Android app from openclaw/openclaw/apps/android tag v2026.4.21
  2. On MacBook: openclaw qr
  3. On Android: Advance Setup → paste Setup Code → Next
  4. Approve the requestId prompt
  5. Error appears immediately after approval

Environment

  • Gateway: v2026.4.21 (MacBook Pro, LAN)
  • Android: v2026.4.21 (built from source, no Google Play services)
  • Setup method: Advance Setup (no Google Play)

Additional context

The pairing flow seems to complete the QR code exchange and Setup Code validation, but fails at the final WebSocket connection step after approval. The requestId appears to be unrecognized by the Gateway when the Android client tries to confirm the connection.

extent analysis

TL;DR

The issue may be resolved by ensuring the requestId is correctly propagated and recognized by the Gateway during the WebSocket connection step.

Guidance

  • Verify that the requestId generated during the QR code exchange is correctly passed to the Android app and stored for later use in the WebSocket connection.
  • Check the Gateway's logs for any errors or warnings related to the requestId validation to understand why it's being reported as "unknown".
  • Review the WebSocket connection establishment code in the Android app to ensure it correctly sends the requestId to the Gateway for validation.
  • Consider adding logging or debugging statements in the Android app and Gateway to trace the requestId from generation to validation, helping identify where it might be lost or corrupted.

Example

No code example is provided due to the lack of specific implementation details in the issue description.

Notes

The solution might involve adjustments to how the requestId is handled in the Android app or the Gateway, but without more specific details on the implementation, it's challenging to provide a precise fix.

Recommendation

Apply a workaround by thoroughly reviewing and debugging the requestId handling in the Android app and Gateway to identify and fix the propagation or validation issue, as upgrading to a potentially fixed version is not explicitly mentioned as an option in the provided context.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

After approving the requestId, the app should connect to the Gateway and complete pairing.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Android: unknown requestId error during pairing (Advance Setup, no Google Play) [1 participants]