Comments (3)
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.
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.
Same issue. Any hints to troubleshoot would be much appreciated.
Thanks
from mitmproxy2swagger.
Related Issues (20)
- Flow file corrupted: mitmproxy 9.0.1 cannot read files with flow format version 20, please update mitmproxy. HOT 1
- mitmproxy2swagger stuck HOT 2
- Mimproxy HOT 1
- Error thrown at generating spec HOT 2
- can we generate documentation in json format instead of yml
- Error with good mitmproxy version : "Flow file corrupted: mitmproxy 8.1.1 cannot read files with flow format version 18, please update mitmproxy" HOT 3
- Second time run of the tool gives an error HOT 1
- Add support for x-www-form-urlencoded requests
- 'str' object does not support item assignment in mitmproxy2swagger.py HOT 1
- 'str' object does not support item assignment in mitmproxy2swagger.py HOT 1
- Allow later json-stream HOT 3
- Nothing shows up in the output file HOT 10
- Error with parsing urlencoded requests HOT 2
- Cannot convert - TypeError: 'int' object is not subscriptable HOT 1
- TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType' HOT 5
- Output file is empty HOT 2
- Consider name change to mitmproxy2openapi HOT 1
- Flow file corrupted: mitmproxy 9.0.1 cannot read files with flow format version 20, please update mitmproxy. HOT 2
- No existing swagger file found. Creating new one. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitmproxy2swagger.