You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Index out of range error when converting to .har file #8188
[13:00:52.694] Addon error: index out of range
Traceback (most recent call last):
File "mitmproxy/addons/savehar.py", line 128, in done
File "mitmproxy/command.py", line 322, in wrapper
File "mitmproxy/addons/savehar.py", line 39, in export_har
File "mitmproxy/addons/savehar.py", line 58, in make_har
File "mitmproxy/addons/savehar.py", line 205, in flow_entry
File "mitmproxy/utils/strutils.py", line 136, in is_mostly_bin
IndexError: index out of range
Issue is also present in mitmweb when using the command line and invoking save.har, since it uses the same /strutils.py source.
I believe the issue may have been introduced with #7933
Activity
fix: avoid IndexError in is_mostly_bin for short tails (mitmproxy#8196)