0

I'm trying to debug an api call I'm making to a Local API and I have setup a proxy (mitmproxy) to capture the requests, I have also set the proxy settings in Postman, my IDE and Fedora Network Settings and imported the required CA certificate from mitmproxy.The proxy seems to be working fine except that any API calls my code makes are not captured regardless of whether I run my code from the terminal or my IDE. I can see captured requests from other apps on my system as well as postman requests to the same API.

Proxy Tool is mitmproxy with mitmweb IDE is Jetbrains Rider My code is written in dotnet 6

Has anyone had a similar issue?

Fearthainn
  • 111
  • 1
  • 6
  • 1
    Why do you need the proxy to debug a local API? Maybe you could elaborate a bit more on your settings (client, server, etc.)? – mu88 Jul 04 '22 at 08:38
  • So by local I mean the server is on the LAN, basically there's a REST API running on a webserver on the LAN, I have no control over the API code on the webserver as it belongs to an off the shelf app that I'm trying to integrate with. I'm writing a client that calls the API in Blazor and I need to debug the API calls. I hope that helps! – Fearthainn Jul 05 '22 at 09:45
  • Usually, _local_ means _on my machine_ So, how have you configured your local code to use mitmproxy? Please add this information to your question – mu88 Jul 05 '22 at 11:05

1 Answers1

0

Try to change the proxy configuration in your machine. In windows, proxy configuration, there is a checkbox that enables or disables the proxy for the local elements (localhosts). Try activating or desactivating this option.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Edu 500
  • 1
  • 2
  • How exactly is this done - Can you provide a reference for it? – ryanwebjackson Feb 09 '23 at 19:20
  • If you press the windows key, and search for proxy, you can enter the Windows proxy configuration, and there you will have a check to enable or disable your proxy. Just try changening it and lets see if there is any change – Edu 500 Mar 24 '23 at 13:39