Har_dump error when converting flow

I’m new with mitm, trying to save all intercepted traffic into har or json to work with it later.

I’ve tried to do mitmproxy -w dump

and then mitmproxy -nr dump -s "har_dump.py h.har"

but got error:

Script error: TypeError: configure() takes 1 positional argument but 2 were given

Script error: Traceback (most recent call last):
  File "har_dump.py", line 148, in response
KeyError: 'log'
1 Like