Har_dump.py not dumping in Windows

The command

mitmdump -w dump

works as expected in Windows 10. When I enter the command

mitmdump -s har_dump.py test.har

mitmdump reports “Loading script har_dump.py” with no error messages. However, no file called test.har appears anywhere on my hard drive, neither immediately, nor after a few http requests, nor even after I shut down mitmdump. Any suggestions?

Is file har_dump.py present in the folder where you execute the command? Can you give us the content of the py file?

Yes, it is present in the location from which mitimdump.exe is called. The contents of har_dump.py are as found at https://raw.githubusercontent.com/mitmproxy/mitmproxy/master/examples/complex/har_dump.py