browserstack / browserstack-cypress-cli

NPM package for the customers to run Cypress on Browserstack Infra
MIT License
52 stars 40 forks source link

browserstack local is set to null but local testing through BrowserStack is not connected #719

Closed ernestosolis-discovery closed 1 year ago

ernestosolis-discovery commented 1 year ago

started getting this error today:

{
  err: null,
  status: 422,
  body: '"{\\"message\\":\\"[local] is set to true but local testing through BrowserStack is not connected. To resolve the issue or to get more info visit - [https://www.browserstack.com/question/779\\](https://www.browserstack.com/question/779//)"}"'
}

my browserstack local config doesn't specify using browserstack local:

  "connection_settings": {
    "local": null,
    "local_identifier": null,
    "local_mode": null,
    "local_config_file": null
  },

versions tested: 1.25.3 1.26.0

abhimanyukoul commented 1 year ago

@ernestosolis-discovery I understand that you are getting an error message related to local testing even when you are not setting the local testing capabilities under the connection_settings section in the browserstack.json file. For further investigation, please share the complete content of your browserstack.json file. Also, if possible, reach out to us via our Contact Us Page.

dwhyteSA commented 1 year ago

I'm getting a similar issue but it's been set to false! The terminal displays that it is set to false and then comes through with the error as stated above.

dwhyteSA commented 1 year ago

[18/10/2023, 11:51:26] - info: Local is set to: false (you won't be able to test localhost / private URLs) ... [18/10/2023, 11:51:26] - error:
{ err: null, status: 422, body: '"{\"message\":\"[local] is set to true but local testing through BrowserStack is not connected. To resolve the issue or to get more info visit - https://www.browserstack.com/question/779\"}"' }

droca commented 1 year ago

In our case we can also see in the Browserstack log when the build starts that the local capability is set to false by default

[10/19/2023, 1:34:34 PM] - info: Local is set to: false (you won't be able to test localhost / private URLs)
ernestosolis-discovery commented 1 year ago

@dwhyteSA @droca Seems is working again, I don't get the 422 error, in case you want to retry. tested with browserstack-cypress-cli versions:

abhimanyukoul commented 1 year ago

@ernestosolis-discovery @dwhyteSA @droca - There was an issue on the BrowserStack side which has been rectified and deployed to production.

dwhyteSA commented 1 year ago

Can confirm on my end that it's working as expected! Thanks @ernestosolis-discovery & @abhimanyukoul 😄

agrawalsaurabhs commented 1 year ago

Closing this. Regret the inconvenience caused. There was an issue on the BrowserStack side which has been fixed and deployed to production. For further queries, please reach out to us via our Contact Us.