Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mitmproxy2swagger stuck #130

Open
testizoo opened this issue Jan 18, 2024 · 3 comments
Open

mitmproxy2swagger stuck #130

testizoo opened this issue Jan 18, 2024 · 3 comments

Comments

@testizoo
Copy link

testizoo commented Jan 18, 2024

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

@InlandEmpire
Copy link

InlandEmpire commented Feb 6, 2024

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.

@dankpanda0
Copy link

Hi,

Did you find any solution?

@zeroadh
Copy link

zeroadh commented May 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants