Binding polling interrupted - openhabcloud failure

So my new binding seems to be working fine, however, a few users are having the polling stopped (httputil). Basically, the openhabcloud disconnects, they then get the below error. Could anyone assist please on a, why this is happening (since the binding doesn’t use openhabcloud),b : how can I trap this to restart my polling, c: is this a bug…
My users report that other bindings connecting to the internet are fine (logging between) so dns (which I assume is the fault) doesn’t actually seem to actually be an issue

2020-02-27 17:06:42.731 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1006. Reason: Disconnected
2020-02-27 17:07:06.377 [INFO ] [control.internal.WebSocketConnection] - Web Socket error
org.eclipse.jetty.websocket.api.UpgradeException: 0 null
at     org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete( ~[?:?]
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete( ~[?:?]
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete( ~[?:?]
at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete( ~[?:?]
at org.eclipse.jetty.client.HttpExchange.abort( ~[?:?]
at org.eclipse.jetty.client.HttpConversation.abort( ~[?:?]
at org.eclipse.jetty.client.HttpRequest.abort( ~[?:?]
at org.eclipse.jetty.client.HttpDestination.abort( ~[?:?]
at org.eclipse.jetty.client.HttpDestination.failed( ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.failed( ~[?:?]
at org.eclipse.jetty.client.HttpClient$1.failed( ~[?:?]
at org.eclipse.jetty.util.SocketAddressResolver$Async.lambda$resolve$0( ~[?:?]
at java.util.concurrent.Executors$ [?:1.8.0_222]
at [?:1.8.0_222]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( [?:1.8.0_222]
at java.util.concurrent.ScheduledThreadPoolExecutor$ [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_222]
at [?:1.8.0_222]
Caused by: java.util.concurrent.TimeoutException: DNS timeout 15000 ms
... 8 more

And another log from a different user:

2020-02-27 04:30:44.375 [WARN ] [.handler.UniFiControllerThingHandler] - Unhandled exception while refreshing the UniFi Controller unifi:controller:home - java.nio.channels.AsynchronousCloseException
2020-02-27 04:30:44.378 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance: {}
io.socket.engineio.client.EngineIOException: websocket error
at     io.socket.engineio.client.Transport.onError( [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket.access$400( [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket$1$ [bundleFile:?]
at io.socket.thread.EventThread$ [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_232]
at [?:1.8.0_232]
Caused by:
at okio.RealBufferedSource.require( ~[?:?]
at okio.RealBufferedSource.readByte( ~[?:?]
at ~[?:?]
at ~[?:?]
at ~[?:?]
at$2.onResponse( ~[?:?]
at okhttp3.RealCall$AsyncCall.execute( ~[?:?]
at ~[?:?]
... 3 more
2020-02-27 04:30:44.822 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service

Each of them interrupts the polling for my binding

So from testing with other users it seems this is a bug in the core or httputil that doesn’t get handled, as when the openhabcloud disconnects any other binding in the middle of a poll also fails and doesn’t recover.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.