iperf3-python icon indicating copy to clipboard operation
iperf3-python copied to clipboard

Simple run on local network produces json key error

Open leeprevost opened this issue 3 years ago • 0 comments

On linux/raspi/bullseye with latest python

in python, i set server_hostname to a local IP and then client.run()

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/IPython/core/interactiveshell.py", line 3398, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-44-be7fe9e82b4a>", line 1, in <cell line: 1>
    client.run()
  File "/usr/local/lib/python3.9/dist-packages/iperf3/iperf3.py", line 634, in run
    return TestResult(data)
  File "/usr/local/lib/python3.9/dist-packages/iperf3/iperf3.py", line 793, in __init__
    self.time = self.json['start']['timestamp']['time']
KeyError: 'timestamp'

leeprevost avatar Sep 06 '22 15:09 leeprevost