mac一打开charles网页就会报错

问题出现的环境背景及自己尝试过哪些方法

打开charles,开启macOS proxy,
访问的是本地运行的项目:http://0.0.0.0:15006/

问题描述

image.png

相关代码

你期待的结果是什么?实际看到的错误信息又是什么?

实际看到的错误信息为:

Charles Error Report

Failed to connect to remote host

Charles failed to connect to the remote host. Check that your Internet connection is ok and that the remote host is accessible. Maybe your network uses a proxy server to access the Internet? You can configure Charles to use an external proxy server in the External Proxy Settings.

The actual exception reported was:

java.net.ConnectException: Connection refused (Connection refused)

Charles Proxy,https://www.charlesproxy.com/

阅读 11.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进