browserstack配置任务Azure管道中的无效URI

问题描述

我正在使用azure Devops,并且正在将浏览器堆栈集成到我的azure管道中,当我运行管道时,在browserstack configuration setup中失败了,它向我显示了此错误

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

我的YAML是

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} '

我已经测试了连接

enter image description here

enter image description here

解决方法

似乎您使用的集线器URL不正确。您可以尝试使用以下格式的URL吗?

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