Open techware01 opened 1 week ago
What version of tshark
do you use?
I have TShark (Wireshark) 4.4.1.
installed on my system. That should be used by pcapng-utils
if not specified otherwise right?
Running Debian unstable
I suppose? Our current target is Debian 12 which ships 4.0.17-0+deb12u1.
As mentioned in the readme, we only support tshark
version >4 so, all good here.
Running Debian
unstable
I suppose? Our current target is Debian 12 which ships 4.0.17-0+deb12u1.
Thanks for the clarification. I'm running Arch Linux and I'm using the pcapng_to_har
utility independently from the PTS.
I apologize for not spotting that earlier. I was not aware that >= 4.0
does not include 4.4
. Will try to install an older version and test it again.
@techware01 the version of tshark you have should work just fine as it's >=4.x
I encountered a TypeError while running the pcapng_to_har function in the pcapng-utils package. The error traceback is as follows:
Code
The error occurs when trying to access a dictionary key in the get_headers function, but the variable header is sometimes not structured as expected. When tested the header was sometimes a string instead of a dict (e.g.
http2.header.name.length
). When I added code to catch these cases an output har file was created, that probably misses some header information.Steps to Reproduce:
Expected Behavior:
The function should parse the HTTP/2 traffic without raising a TypeError.
Environment:
Please let me know if you need any further information to assist in resolving this issue.