Hi all,
I have noted the following error message in my log file. The error repeats every 5 minutes:
2022-01-23 11:02:03.814 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://api.ipify.org/' (method='GET', content='null') failed: HttpConnectionOverHTTP@711084::SocketChannelEndPoint@4e8d92{l=/192.168.88.5:46926,r=api.ipify.org/54.91.59.199:80,ISHUT,fill=-,flush=-,to=138/0}{io=0/0,kio=0,kro=1}->HttpConnectionOverHTTP@711084(l:/192.168.88.5:46926 <-> r:api.ipify.org/54.91.59.199:80,closed=false)=>HttpChannelOverHTTP@14c1abf(exchange=HttpExchange@3a7c42{req=HttpRequest[GET / HTTP/1.1]@89b6f1[TERMINATED/null] res=HttpResponse[null 0 null]@158eaf[PENDING/null]})[send=HttpSenderOverHTTP@163e5f0(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@105c32{s=START}],recv=HttpReceiverOverHTTP@15d447f(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0 of -1}]]
But the wget command from the openhab terminal works correctly:
openhabian@openhabian:~ $ wget "http://api.ipify.org"
--2022-01-23 11:08:38-- http://api.ipify.org/
Resolving api.ipify.org (api.ipify.org)... 54.91.59.199, 3.220.57.224, 52.20.78.240, ...
Connecting to api.ipify.org (api.ipify.org)|54.91.59.199|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13 [text/plain]
Saving to: ‘index.html.4’
index.html.4 100%[======================================================>] 13 --.-KB/s in 0s
2022-01-23 11:08:39 (327 KB/s) - ‘index.html.4’ saved [13/13]
Here is my thing file:
Thing http:url:wanIP "WAN" [baseURL="http://api.ipify.org/", refresh=60, timeout=10000] {
Channels:
Type string : sWanip "sWanIP" [ stateTransformation="REGEX:(.*)" ]
}
Any idea?