Search code examples
azure-devopscontinuous-integrationautomated-testsbrowserstack

browserstack configuration Task Invalid URI in azure pipeline


I am using azure Devops and I am integrating browserstack in my azure pipeline and when I Run the pipeline ut fail in BrowserStack configuration setup and it showed me this error

Error: Invalid URI "https:///#$@api.browserstack.com/automate/plan.json"

my YAML is

steps:
- task: browserstackcom.browserstack-vsts-extension.browserstack-config-task.BrowserStackConfig@0
  displayName: 'BrowserStack configuration setup'
  inputs:
    BrowserStackServiceEndPoint: BrowserStack
    browserstackLocal: true
    bsLocalOptions: ' {"verbose": true, "forceLocal": true} '

and I have already test the connection

enter image description here

enter image description here


Solution

  • it seems that you are using an incorrect Hub URL for your configuration. Could you try using the below format of the URL?

    https://USERNAME:AUTOMATE_KEY@hub-cloud.browserstack.com/wd/hub