Title: Browserstack node sdk is failing now with error Cannot find command to respond: 5 · Issue #86 · browserstack/node-js-playwright-browserstack · GitHub
Open Graph Title: Browserstack node sdk is failing now with error Cannot find command to respond: 5 · Issue #86 · browserstack/node-js-playwright-browserstack
X Title: Browserstack node sdk is failing now with error Cannot find command to respond: 5 · Issue #86 · browserstack/node-js-playwright-browserstack
Description: Title Cannot find command to respond: N on real mobile devices with @playwright/test >= 1.60 Environment browserstack-node-sdk: 1.59.0 @playwright/test failing: 1.60.0, 1.60.1, 1.61.0, 1.61.1 @playwright/test working: 1.59.1 Node.js 20/2...
Open Graph Description: Title Cannot find command to respond: N on real mobile devices with @playwright/test >= 1.60 Environment browserstack-node-sdk: 1.59.0 @playwright/test failing: 1.60.0, 1.60.1, 1.61.0, 1.61.1 @play...
X Description: Title Cannot find command to respond: N on real mobile devices with @playwright/test >= 1.60 Environment browserstack-node-sdk: 1.59.0 @playwright/test failing: 1.60.0, 1.60.1, 1.61.0, 1.61.1 @p...
Opengraph URL: https://github.com/browserstack/node-js-playwright-browserstack/issues/86
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Browserstack node sdk is failing now with error Cannot find command to respond: 5","articleBody":"\nTitle\nCannot find command to respond: N on real mobile devices with @playwright/test \u003e= 1.60\n\nEnvironment\nbrowserstack-node-sdk: 1.59.0\n@playwright/test failing: 1.60.0, 1.60.1, 1.61.0, 1.61.1\n@playwright/test working: 1.59.1\nNode.js 20/22, macOS 14, ESM project\nRunner: npx browserstack-node-sdk playwright test ...\nAffected\nReal-mobile sessions only. Reproduced on Samsung Galaxy S25 Ultra, Google Pixel 10, and iPhone 14 Pro (realMobile: true). Desktop Windows/OS X sessions are not affected.\n\n**Steps to reproduce**\nnpm i -D browserstack-node-sdk@1.59.0 @playwright/test@1.61.1\nMinimal spec:\n[browserstack.yml](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html) targeting Samsung Galaxy S25 Ultra, realMobile: true.\nRun: npx browserstack-node-sdk playwright test smoke.spec.ts\n**Actual**\nShortly after the first action (or at teardown):\n\nFollowed by page.waitForTimeout: Target page, context or browser has been closed on every subsequent step. Session shows the URL loaded on the device but the run ends with UnhandledError.\n\n**Expected**\nSame behaviour as @playwright/test@1.59.1 — session completes normally.\n\n**Suspected cause**\nThe SDK monkey-patches Playwright's internal Connection class (sessionDetails.js, method _0x51c14e). Playwright 1.60 refactored how in-flight command callbacks are tracked in playwright-core/src/client/connection.ts, so responses arrive for IDs the patch has already released. Desktop uses a different transport, hence real-mobile-only.\n\n**Workaround**\nPin @playwright/test to exact 1.59.1.\n\n**Ask**\nDocument the supported @playwright/test version range for real-device sessions.\nShip an SDK update that patches Playwright 1.60/1.61's refactored Connection.\nConsider replacing the monkey-patch with a public Playwright extension point so future refactors don't break real devices.\n","author":{"url":"https://github.com/rakhee-puria","@type":"Person","name":"rakhee-puria"},"datePublished":"2026-06-26T16:21:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/86/node-js-playwright-browserstack/issues/86"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e41a7af0-9cda-a503-b6f8-93d22f67a633 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFE4:14A013:2C66ED3:3BFA3B4:6A53B9E7 |
| html-safe-nonce | 310c018c071dabe9247f46e564c1d4c44c52b26e50296d6454ce8975603e8b81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkU0OjE0QTAxMzoyQzY2RUQzOjNCRkEzQjQ6NkE1M0I5RTciLCJ2aXNpdG9yX2lkIjoiNzI2NjI2NzkyMjc0OTk2MjcyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 228de64685fe34eb1819ae1f2cb9708cabf0bf67a4a7ee1b43c904da16a9e4e8 |
| hovercard-subject-tag | issue:4753489828 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/node-js-playwright-browserstack/86/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aa94ad75cdc8b61c124c1d36391073789a6f8bd53d588e96ddebafae8f665cf2/browserstack/node-js-playwright-browserstack/issues/86 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aa94ad75cdc8b61c124c1d36391073789a6f8bd53d588e96ddebafae8f665cf2/browserstack/node-js-playwright-browserstack/issues/86 |
| og:image:alt | Title Cannot find command to respond: N on real mobile devices with @playwright/test >= 1.60 Environment browserstack-node-sdk: 1.59.0 @playwright/test failing: 1.60.0, 1.60.1, 1.61.0, 1.61.1 @play... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rakhee-puria |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/node-js-playwright-browserstack git https://github.com/browserstack/node-js-playwright-browserstack.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 575727740 |
| octolytics-dimension-repository_nwo | browserstack/node-js-playwright-browserstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 575727740 |
| octolytics-dimension-repository_network_root_nwo | browserstack/node-js-playwright-browserstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width