Skip to content

options.uri is a required argument #68

Description

@bdefore

I'm unable to get started with Browserstack Cypress. I'm running 1.5.0. I've tried using browerstack-cypress-cli both locally and globally, installed via yarn. Here's my config (mostly unchanged from the docs):

{
  "auth": {
    "username": "my_username_here",
    "access_key": "my_key_here"
  },
  "browsers": [{
      "browser": "chrome",
      "os": "Windows 10",
      "versions": ["latest", "latest-1"]
    },
    {
      "browser": "firefox",
      "os": "OS X Mojave",
      "versions": ["latest", "latest-1"]
    },
    {
      "browser": "edge",
      "os": "OS X Catalina",
      "versions": ["latest", "latest-1"]
    }
  ],
  "run_settings": {
    "cypress_config_file": "./src/path/to/monorepo/project/cypress.json",
    "project_name": "Project",
    "build_name": "Build",
    "parallels": "5"
  }
}

And the output:

→ ./node_modules/.bin/browserstack-cypress run
No env file present for the current environment:  development 
 Falling back to .env config
No env file present for the current environment:  development
[10/9/2020, 2:32:42 PM] - info: Reading config from /Users/▉▉/▉▉/browserstack.json
[10/9/2020, 2:32:42 PM] - info: browserstack.json file is validated
[10/9/2020, 2:32:43 PM] - error:  
{
  message: 'options.uri is a required argument',
  stack: 'Error: options.uri is a required argument\n' +
    '    at Request.init (/Users/▉▉/▉▉/node_modules/request/request.js:231:31)\n' +
    '    at new Request (/Users/▉▉/▉▉/node_modules/request/request.js:127:8)\n' +
    '    at request (/Users/▉▉/▉▉/node_modules/request/index.js:53:10)\n' +
    '    at Function.post (/Users/▉▉/▉▉/node_modules/request/index.js:61:12)\n' +
    '    at /Users/▉▉/▉▉/node_modules/browserstack-cypress-cli/bin/helpers/zipUpload.js:28:13\n' +
    '    at new Promise (<anonymous>)\n' +
    '    at Object.uploadCypressZip [as zipUpload] (/Users/▉▉/▉▉/node_modules/browserstack-cypress-cli/bin/helpers/zipUpload.js:10:10)\n' +
    '    at /Users/▉▉/▉▉/node_modules/browserstack-cypress-cli/bin/commands/runs.js:55:28\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:97:5)'
}
[10/9/2020, 2:32:43 PM] - error: Zip Upload failed.
[10/9/2020, 2:32:44 PM] - info: Zip file deleted successfully.

This is pointing to a Cypress config I'm able to run via Cypress directly outside of Browserstack.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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