question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting View Filter shows Addon Error in Eventlog

See original GitHub issue
error: Addon error: Traceback (most recent call last):
    File "/home/coldfire/Projects/mitmproxy/mitmproxy/addons/view.py", line 521, in update
        idx = self._view.index(f)
    File "/home/coldfire/Projects/mitmproxy/venv/lib/python3.6/site-packages/sortedcontainers/sortedlist.py", line 2343, in index
        raise ValueError('{0!r} is not in list'.format(val))
    File "/home/coldfire/Projects/mitmproxy/mitmproxy/http.py", line 182, in __repr__
        return s.format(flow=self)
    File "/home/coldfire/Projects/mitmproxy/mitmproxy/connections.py", line 215, in __repr__
        host=self.address[0],
TypeError: 'NoneType' object is not subscriptable
Steps to reproduce the problem:
  1. Open mitmproxy
  2. set a value for view_filter in Options or using the : set view_filter={str}
  3. Open a attached browser and open any url
  4. Quit the browser and Open the Eventlog in mitmproxy.
Any other comments? What have you tried so far?

Another error occuring for the view_filter option. I was working on a fix for #2801 #2951 when i noticed this other error occurs if any value is setup in view_filter. I think it requires a complete patch once and for all.

System information

Mitmproxy: 4.0.0.dev103 (commit 77ed33b) Python: 3.6.4 OpenSSL: OpenSSL 1.1.0g 2 Nov 2017 Platform: Linux-4.14.21-1-MANJARO-x86_64-with-arch-Manjaro-Linux

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mhilscommented, Mar 23, 2018

I don’t think there’s another issue here. From the original traceback, it looks like we are checking if a flow is in the view, which isn’t the case. This is totally expected, the problem here was that sortedcontainers used {0!r}, which triggers the flows __repr__, which then failed. It’s okay for flows to have a server_conn.address of None, see e.g. the http_connect example.

0reactions
fenilgandhicommented, Mar 23, 2018

@mhils, The pull-request #3008 only handles the scenario where the address is None and gracefully handles it but the bug which actually causes the value of an address to be None yet exists somewhere.

So maybe until a fix can found for it, shall i keep this issue open or only handling the None value completely fixes the bug somehow ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to filter the Windows Event Viewer Logs to help resolve ...
Learn how to filter information in the Windows Event Viewer logs to help you resolve a variety of system problems.
Read more >
Add Event ID and Text Filter to Event Log Monitor - YouTube
How to Audit Windows Logons and Logon FailuresWhen a user logs into a Windows computer, or fails to logon, an event can be...
Read more >
Event Log - Official Kodi Wiki
Can be used to filter large lists, or to show specific types of entries only. The available levels are Basic, Information, Warning and...
Read more >
FullEventLogView - Event Log Viewer for Windows 11 / 10 / 8 ...
Simple tool for Windows 11/10/8/7/Vista that displays in a table the details of all events from the event logs of Windows, including the...
Read more >
Event viewer mmc error when filter current log is selected
One or more of the evtx files may be somehow corrupt. You can disable the Windows Event Log service, reboot, then move or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found