You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
browserstack-local sometimes breaks due to Incorrect JSON in stdout #127
browserstack-local starts and fails with next error
SyntaxError: Unexpected token { in JSON at position 66
at JSON.parse (<anonymous>)
at /<project path>/node_modules/browserstack-local/lib/Local.js:59:23
at ChildProcess.exithandler (node:child_process:388:7)
at ChildProcess.emit (node:events:390:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
error Command failed with exit code 1.
Steps to Reproduce the Problem
it's flaky, but often reproduces
start connection to BrowserStack before tests
browserstack local arguments
local: true,
localIdentifier: "" // generated id: `${<project name>}_${os.userInfo().username}_${Math.round(Math.random() * 1e6)}` as string,
networkLogs: true,
consoleLogs: "errors",
resolution: "1280x1024",
seleniumVersion: "4.0.0-alpha-6", // also reproduced with "4.1.2", "3.141.59"
idleTimeout: 300,
os: "Windows",
osVersion: "10",
projectName: "" // project name as string,
sessionName: "" // name as string,
buildName: "" // name as string,
Platform details
browserstack-local-nodejs version: 1.4.8, also reproduced on 1.4.9
node version: 16.13.0, also reproduced on 14.3.0, 14.18.0
Activity