记一次使用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