Skip to content

Error starting browerstack local #37

Open
@HesterLyons

Description

@HesterLyons

Expected Behavior

Given that I have a correct access key
When I start browerstack local
Then the browserstack local object should start successfully

Actual Behavior

At l.start(options) (line 33 in BrowserStackLocalTest.java) an error is thrown:
org.json.JSONException: JSONObject["message"] is not a JSONObject.

`at org.json.JSONObject.getJSONObject(JSONObject.java:640)`
`at com.browserstack.local.Local.start(Local.java:80)`
`at com.browserstack.local.BrowserStackLocalTest.testMultipleBinary(BrowserStackLocalTest.java:33)`
    `...`

This behaviour is repeated across the project and also in different projects in which the library is used.

Steps to Reproduce the Problem

  1. Download the repository and extract
  2. Open command prompt or git bash in the extracted folder
  3. run mvn test or run from within the IDE.

browserstack local arguments

I have run the repository out of the box and changed no settings. I know that my Browserstack access credentials are correct and non-local tests run OK.

Platform details

  1. browserstack-local-java version: 1.0.1
  2. java version: 1.8
  3. os type and version: Windows 10

Details

the command Local.start() does not appear to function correctly and throws an error when invoked. The function new Local(); works OK and returns an object. The hashmap contains the correct elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions