Open ns-pdimarco opened 3 years ago
The exception you see is most probably that of #258. Anyway, when a chained proxy is configured and there's a connection error, the logging code prints a log entry saying that an error occurred while trying to connect to the target URL using a chained proxy, even if the target URL is in the no-proxy host configuration. However this log entry is misleading, because I verified that the no-proxy host mechanism does indeed work, it's just the logging code that does a dumb check like "if a chained proxy is configured, than say that the error occurred while connecting through it", disregarding whether it was actually used to make the connection or not.
Describe the bug In version
2.1.1
(2.1.2
missing execution files) The Non Proxy Host specified to the proxy causes an error inbrowserup-proxy
followed by the traffic being forwarded to the specified proxyHost. I tested this with creating a sauce connect proxy (https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy) that points to a createdbrowserup-proxy
proxy.To Reproduce Steps to reproduce the behavior:
{httpNonProxyHosts=[saucelabs.com], trustAllServers=[true], httpProxy=[localhost:8080]}
--proxy
to the newly createdbrowserup-proxy
proxy. Eg:sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY --proxy localhost:9091
Expected behavior Would expect the nonProxyHosts config to not generate errors and not forward traffic to proxy host.
Please complete the following information:
Sauce Connect 4.6.4, build 5309 21ce484
Additional Context May be related to https://github.com/browserup/browserup-proxy/issues/258