記一次使用Charles報錯解決方法


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM