Charles代理打開后,訪問本地連接,報錯
Charles Error Report
Name lookup failed for remote host
Charles failed to resolve the name of the remote host into an IP address. Check that the URL is correct.
The actual exception reported was:
java.net.UnknownHostException: a.uat.qa.nt.ctripcorp.com: nodename nor servname provided, or not known
Charles Proxy, https://www.charlesproxy.com/
可能是因為本地的host域名映射沒有應用到Charles里,可以在Tools-> DNS Spoofing里配置一下域名映射,把要訪問的本地域名映射到127.0.0.1