An exception occurred while running Speedtest: 'Invalid URI host: null (authority: null)'

Hi,

I am am using ookla speedtest binding, but when this error occurs :

An exception occurred while running Speedtest: 'Invalid URI host: null (authority: null)'

The binding goes offline and stays offline
From openhab.log :

2024-06-26 15:34:47.156 [DEBUG] [.speedtest.internal.SpeedtestHandler] - Getting Speed Measurement
2024-06-26 15:34:47.157 [DEBUG] [.speedtest.internal.SpeedtestHandler] - Passing to shell for parsing command.
2024-06-26 15:34:47.157 [DEBUG] [.speedtest.internal.SpeedtestHandler] - OS: *NIX (Linux)
2024-06-26 15:34:47.158 [DEBUG] [.speedtest.internal.SpeedtestHandler] - The command to be executed will be '[sh, -c, /openhab/conf/automation/bin/speedtest -f json --accept-license --accept-gdpr]'
2024-06-26 15:35:08.842 [DEBUG] [.speedtest.internal.SpeedtestHandler] - Exec [OUTPUT]: '{"type":"result","timestamp":"2024-06-26T13:35:08Z","ping":{"jitter":0.242,"latency":19.329,"low":19.139,"high":19.548},"download":{"bandwidth":3440865,"bytes":22254780,"elapsed":6512,"latency":{"iqm":106.356,"low":20.268,"high":440.235,"jitter":35.106}},"upload":{"bandwidth":941204,"bytes":11623060,"elapsed":12722,"latency":{"iqm":698.025,"low":80.651,"high":1125.727,"jitter":90.560}},"packetLoss":0,"isp":"Proximus","interface":{"internalIp":"172.17.0.3","name":"eth0","macAddr":"02:42:AC:11:00:03","isVpn":false,"externalIp":"81.241.9.189"},"server":{"id":30594,"host":"speedtest01.orange.be","port":8080,"name":"Orange Belgium","location":"Evere","country":"Belgium","ip":"212.224.131.122"},"result":{"id":"d785bc25-87c9-4658-a4cf-e251a63c6e28","persisted":false}}'
2024-06-26 15:35:08.845 [DEBUG] [.speedtest.internal.SpeedtestHandler] - Downloading result image from: null.png
2024-06-26 15:35:08.845 [WARN ] [.speedtest.internal.SpeedtestHandler] - An exception occurred while running Speedtest: 'Invalid URI host: null (authority: null)'

Anyone an idea what is wrong ?
Kind regards
willy

Forgot to mention I am using version 4.1.3 in a docker container

Kind regards

willy

I ran into the same issue and created a PR to resolve this: https://github.com/openhab/openhab-addons/pull/18066

1 Like