酱实验室量angular器,格式不正确的URI
我的量angular器configuration是:
exports.config = { baseUrl: 'http://www.onet.pl', directConnect: false, sauceUser: 'myuser', sauceKey: 'mypassword', capabilities: { 'browserName': 'chrome', 'chromeOptions': { 'args': ['show-fps-counter=true', '--allow-running-insecure-content'] } }, }
当我尝试启动testing时,出现以下错误:
[12:57:56] I/sauce - Using SauceLabs selenium server at http://ondemand.saucelabs.com:80/wd/hub [12:57:56] I/launcher - Running 1 instances of WebDriver [12:57:56] E/launcher - URI malformed [12:57:56] E/launcher - URIError: URI malformed at decodeURIComponent (native) at Url.parse (url.js:275:19) at Object.urlParse [as parse] (url.js:81:5) at new HttpClient (C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\http\index.js:221:25) at C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\executors.js:47:18 at ManagedPromise.invokeCallback_ (C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\lib\promise.js:1379:14) at TaskQueue.execute_ (C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\lib\promise.js:2913:14) at TaskQueue.executeNext_ (C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\lib\promise.js:2896:21) at asyncRun (C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\lib\promise.js:2820:25) at C:\Users\gwk736\Gitlab\Inform\e2e\node_modules\selenium-webdriver\lib\promise.js:639:7 [12:57:56] E/launcher - Process exited with error code 199
任何人在运行testing时遇到这个问题? 这对我来说是一个非常奇怪的行为…不幸的是没有任何例子可以find。
我能够通过在sauceUser
或者sauceKey
中错误地编码字符来复制你的错误。 你可以检查你的configuration中是否有这样的字符?
sauceUser: 'myuser', sauceKey: 'password%EA',
错误堆栈:
[14:41:46] I/sauce - Using SauceLabs selenium server at http://ondemand.saucelabs.com:80/wd/hub [14:41:46] I/launcher - Running 1 instances of WebDriver [14:41:46] E/launcher - URI malformed [14:41:46] E/launcher - URIError: URI malformed at decodeURIComponent (native) at Url.parse (url.js:195:19) at Object.urlParse [as parse] (url.js:84:5)
在nodeJs git问题中已经解释了nodeJs中的这个问题
当客户端将“%”编码为“%EA”,将“é”编码为“%E9”,然后将它们发送到我的节点服务器时,我遇到了这个错误。 尝试解码其中的任何一个都会导致uri格式错误:
decodeURIComponent("%EA"); URIError: URI malformed at decodeURIComponent (native) at repl:1:1
- UNMET PEER DEPENDENCY D3.js和Angular 2
- 错误:EPERM无法安装@ angular / cli
- 如何在Nodejs中处理angular2pathpath
- configurationJenkins的angular度项目 – 单个git仓库与多个包
- 无法从Node.js命令提示符运行量angular器
- 量angular器:在一个js中初始化全局variables,并在其他js中使用相同的variables
- 量angular器插件 – 辅助function – AssertionError:path必须是一个string
- 部署一个Angular网站到github页面
- 无法在量angular器中使用–suites选项,因此会出现“Spec patterns与任何文件不匹配”错误