Code Monkey home page Code Monkey logo

Comments (3)

insinfo avatar insinfo commented on May 9, 2024 2

I solved the problem for me by passing the "-f flow" argument

mitmproxy2swagger -i .\flows -o ./out.yaml -p http://localhost:3350/api/v1 -f flow

from mitmproxy2swagger.

QJoly avatar QJoly commented on May 9, 2024

Hi,

I have the same error, I tried multiple version of Python (3.8, 3.10 and 3.11).

test git:(master) ✗ mitmproxy2swagger -i ./flow -p "http://192.168.1.21" -o test.yaml
No existing swagger file found. Creating new one.
Traceback (most recent call last):
  File "/home/qjoly01/.local/bin/mitmproxy2swagger", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/qjoly01/.local/lib/python3.11/site-packages/mitmproxy2swagger/mitmproxy2swagger.py", line 178, in main
    for req in capture_reader.captured_requests():
  File "/home/qjoly01/.local/lib/python3.11/site-packages/mitmproxy2swagger/har_capture_reader.py", line 117, in captured_requests
    for entry in data["log"]["entries"].persistent():
                 ~~~~^^^^^^^
TypeError: 'int' object is not subscriptable

from mitmproxy2swagger.

tikolakin avatar tikolakin commented on May 9, 2024

Same issue. Any hints to troubleshoot would be much appreciated.
Thanks

from mitmproxy2swagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.