偶人儿

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

posted on 2021-11-04 21:30  偶人儿  阅读(5701)  评论(0)    收藏  举报