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

Update for mitmproxy 11 (or define which versions to use) #177

Open
mborus opened this issue Oct 10, 2024 · 3 comments
Open

Update for mitmproxy 11 (or define which versions to use) #177

mborus opened this issue Oct 10, 2024 · 3 comments

Comments

@mborus
Copy link

mborus commented Oct 10, 2024

I just tried out the program with a dump made with the current mitmproxy version 11.0.0

When I run the example like

mitmproxy2swagger -i <my-dump-file.mitm> -o api.json -p https://<removed>/api/v1

it defaults to HAR import and crashes with a UnicodeError

If I add

-f flow

the output is

"Flow file corrupted: mitmproxy 10.4.2 cannot read files with flow format version 21, please update mitmproxy."

Maybe you can add a warning to not use the current mitmproxy.

Some more info: When I manually update mitmproxy in the venv the code runs, but lists all endpoints as ignored.

@ZiyadMoneep
Copy link

try to setup via pipx !

@jjgit1234
Copy link

I just tried out the program with a dump made with the current mitmproxy version 11.0.0

When I run the example like

mitmproxy2swagger -i <my-dump-file.mitm> -o api.json -p https://<removed>/api/v1

it defaults to HAR import and crashes with a UnicodeError

If I add

-f flow

the output is

"Flow file corrupted: mitmproxy 10.4.2 cannot read files with flow format version 21, please update mitmproxy."

Maybe you can add a warning to not use the current mitmproxy.

Some more info: When I manually update mitmproxy in the venv the code runs, but lists all endpoints as ignored.

I get the same issue. Also tried with pipx

@jjgit1234
Copy link

Similar issue was fixed in #110

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

3 participants