DevExpress/testcafe-browser-provider-browserstack

SyntaxError: Unexpected token B in JSON at position 0

Closed this issue · 4 comments

Currently I have the following issue.
When using this branch https://github.com/w3tecch/test-cafe-e2e/tree/feature/browser-stack with the command npm run browserstack:chrome I get this error:

> testcafe "browserstack:chrome@64.0:OS X High Sierra" "tests/**/*.spec.ts"

⠹
undefined:1
BrowserStackLocal v5.9
^

SyntaxError: Unexpected token B in JSON at position 0
    at JSON.parse (<anonymous>)
    at /.../test-cafe-e2e/node_modules/browserstack-local/lib/Local.js:50:23
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)

Just fill in your credentials in .env after you have done cp .env.example .env.

Could narrow it down to this error:

*** Error: Could not connect to start!

Probably related to this browserstack/browserstack-local-nodejs#31 but unsure as it has been resolved with version 1.3.0, which is the current dependency for this repo.

Hi @dweber019, the latest version of browserstack-local is 1.3.1, so it must be installed as a dependency because provider specifies caret version range in the package.json. It means that browserstack/browserstack-local-nodejs#31 wasn't fixed, and you should open a new issue that references the old one.

Closing it because of issue in browserstack-local.