BrowserStackLocal与代理提供错误:无法连接到www.browserstack.com

时间:2016-05-20 16:13:33

标签: proxy browserstack

BrowserStackLocal给出错误:无法连接到www.browserstack.com!

我正在尝试将Charles Proxy与BrowserStackLocal一起使用。我想使用Charles Proxy的Rewrite功能。 Charles Proxy和BrowserStackLocal都在同一台Mac笔记本电脑上运行。

我收到了以下错误。有没有人遇到这个问题?

$ ./BrowserStackLocal myKey -proxyHost 192.168.160.113 -proxyPort 8888 -force -forcelocal
BrowserStackLocal v5.5

*** Error: Could not connect to www.browserstack.com!

Configuration Options:
-v
 Provides verbose logging
-f
 If you want to test local folder rather internal server
-h
 Prints this help
-version
 Displays the version
-force
 Kill other running Browserstack Local
-only
 Restricts Local Testing access to specified local servers and/or folders
-forcelocal
 Route all traffic via local machine
-onlyAutomate
 Disable Live Testing and Screenshots, just test Automate
-proxyHost HOST
Hostname/IP of proxy, remaining proxy options are ignored if this option is absent
-proxyPort PORT
Port for the proxy, defaults to 3128 when -proxyHost is used
-proxyUser USERNAME
Username for connecting to proxy (Basic Auth Only)
-proxyPass PASSWORD
Password for USERNAME, will be ignored if USERNAME is empty or not specified
-localIdentifier SOME_STRING
If doing simultaneous multiple local testing connections, set this uniquely for different processes

To test an internal server, run:
./BrowserStackLocal <KEY>
Example:
./BrowserStackLocal DsVSdoJPBi2z44sbGFx1

To test HTML files, run:
./BrowserStackLocal -f <KEY> <full path to local folder>
Example:
./BrowserStackLocal -f DsVSdoJPBi2z44sbGFx1 /Applications/MAMP/htdocs/example/

View more configuration options at http://www.browserstack.com/local-testing

2 个答案:

答案 0 :(得分:0)

Charles Proxy生成自己的证书,由“Charles Root Certificate”签名。似乎Charles Proxy正在修改BrowserStackLocal使用的证书,因为对BrowserStack的请求失败并且您收到“无法连接到www.browserstack.com!”。有关SSL证书和Charles的更多信息可用here

你可以在Charles中禁用此设置吗?这将允许BrowserStackLocal使用其原始证书并连接到BrowserStack。

答案 1 :(得分:0)

我在Charles Proxy中禁用了SSL代理并转为SOCKS。这解决了这个问题。