ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.71k stars 189 forks source link

No Requests logged since updating #1834

Open andykent opened 1 year ago

andykent commented 1 year ago

Description

I'm a long time ProxyMan customer and things have been fairly stable for me but a recent update. (4.14 or possibly 4.13) broke request logging completely for me and am no longer seeing any data.

Steps to Reproduce

  1. Launch Proxyman
  2. Make HTTP requests from Mac
  3. Nothing is recoded in Proxyman UI

Current Behavior

I don't see any requests logged but the titlebar does say "Listening on..." and the status bar does show up/down network traffic so something is listening somewhere I think.

I think the issue may have started when I was prompted to install the new 1.5.0 HelperTool so as a first step I tried deleting and reinstalling the HelperTool, it re-installed successfully (as 1.5.0) but made no difference to the issue.

Expected Behavior

HTTP requests show up in the UI as previously.

Environment

NghiaTranUIT commented 1 year ago

Sorry for this trouble.

Can you try do delete this file at /Library/PrivilegedHelperTools/com.proxyman.NSProxy.HelperTool and install the Helper Tool again?

NghiaTranUIT commented 1 year ago

It seems Proxyman doesn't connect to the Helper Tool, so Proxyman can't override the system proxy.

andykent commented 1 year ago

Thanks for the fast response. As mentioned I had already tried that but I just tried it again with the same results.

One thing I did notice is that it has a warning about networksetup cli I'm not sure what would be causing that. Maybe it's related?

I ran sudo rm /Library/PrivilegedHelperTools/com.proxyman.NSProxy.HelperTool and then did the steps in the screenshots below...

Screenshot 2023-10-31 at 12 20 14 Screenshot 2023-10-31 at 12 20 23 Screenshot 2023-10-31 at 12 20 34
NghiaTranUIT commented 1 year ago

Then, it's working right? Your last screenshot shows the Helper Tool v1.5 is installed.

You can try toggle the proxy in Tools Memu -> Proxy Settings-> Override system proxy

andykent commented 1 year ago

The installation worked but the requests are still not shown. This is what I see in the main window.

Screenshot 2023-10-31 at 12 29 06

I just tried toggling the "Override macOS Proxy" off and on again but it made no difference.

NghiaTranUIT commented 1 year ago

You might check if there is any VPN app is ON. Or conflict with Security apps in your Macbook.

Try to turn it off will fix it

andykent commented 1 year ago

oh, I feel dumb.

This was it. My VPN client had connected without me realising and I had the UI closed so hadn't noticed.

Disconnecting the VPN resolved the issue. I should have figured that from the IP address too.

Thanks for your help, happy to close this now but it would be awesome if a future version of Proxyman could somehow detect this situation and flag the issue.

NghiaTranUIT commented 1 year ago

Thanks. Glad to know it works 😄 May I ask what the VPN name is ?

andykent commented 1 year ago

NordVPN

Geczy commented 1 year ago

my issue was leaving the VPN on too 😂, this was bugging me, finally it works. thanks!

NghiaTranUIT commented 1 year ago

Thanks. I guess I can implement a small feature to prevent it in the future:

  1. After launch 5 seconds,
  2. If there is no requests in the main table even though the Overridden Proxy is enabled
  3. Get all running apps and check if there is any VPN app is active
  4. Show the small ⚠️ in the status bar -> Notify the user might turn off these VPN apps.

How do you think 🤔

Geczy commented 1 year ago

Yeah that seems okay. But is there a more intelligent way to know if a vpn is enabled than to check list of apps? There are thousands of vpns. I use one called globalprotect which is for work. Like something with dns check? Or location check

NghiaTranUIT commented 1 year ago

It's a good point. I suppose that I can use the Network framework to check if there is any VPN is active, and then try to get the name.