mitmproxy2swagger icon indicating copy to clipboard operation
mitmproxy2swagger copied to clipboard

mitmproxy2swagger stuck

Open testizoo opened this issue 5 months ago • 3 comments

Hi, I tried to run this code sudo mitmproxy2swagger -i ~/Downloads/flows -o spec.yml -p http://127.0.0.1:8888 -f flow --examples And this was the output [sudo] password for hapihacker: No existing swagger file found. Creating new one. [ ] 0.0%

The program remains stuck and does not generate any spec.yml file. Any solution?

MITMPROXY VERSION mitmweb --version Mitmproxy: 10.1.5 Python: 3.11.7 OpenSSL: OpenSSL 3.1.4 24 Oct 2023 Platform: Linux-6.5.0-kali3-amd64-x86_64-with-glibc2.37

testizoo avatar Jan 18 '24 18:01 testizoo

I have the exact same problem.

Edit: For me this turned out to be the result of a corrupt flows file. Attempt re-recording your results, saving as a new flow file, and then running mitmproxy2swagger again.

InlandEmpire avatar Feb 06 '24 17:02 InlandEmpire

Hi,

Did you find any solution?

dankpanda0 avatar Apr 04 '24 11:04 dankpanda0

I had the same issue. I had to navigate to the directory where the flows file was, and used -i ./flows. That fixed the error, but the spec.yml didn't seem to populate with any paths from my import

zeroadh avatar May 16 '24 15:05 zeroadh