-
Notifications
You must be signed in to change notification settings - Fork 222
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
TypeError: 'int' object is not subscriptable #95
Comments
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 |
Same issue. Any hints to troubleshoot would be much appreciated. |
I solved the problem for me by passing the "-f flow" argument
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting this error when trying to use mitmproxy2swagger
flows
The text was updated successfully, but these errors were encountered: