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(WebSocketUpgradeRequest.java:524) ~[?:?]
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:198) ~[?:?]
at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:190) ~[?:?]
at org.eclipse.jetty.client.HttpExchange.notifyFailureComplete(HttpExchange.java:269) ~[?:?]
at org.eclipse.jetty.client.HttpExchange.abort(HttpExchange.java:240) ~[?:?]
at org.eclipse.jetty.client.HttpConversation.abort(HttpConversation.java:149) ~[?:?]
at org.eclipse.jetty.client.HttpRequest.abort(HttpRequest.java:768) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.abort(HttpDestination.java:453) ~[?:?]
at org.eclipse.jetty.client.HttpDestination.failed(HttpDestination.java:234) ~[?:?]
at org.eclipse.jetty.client.AbstractConnectionPool$1.failed(AbstractConnectionPool.java:140) ~[?:?]
at org.eclipse.jetty.client.HttpClient$1.failed(HttpClient.java:600) ~[?:?]
at org.eclipse.jetty.util.SocketAddressResolver$Async.lambda$resolve$0(SocketAddressResolver.java:161) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_222]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) [?: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(Transport.java:63) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket.access$400(WebSocket.java:24) [bundleFile:?]
at io.socket.engineio.client.transports.WebSocket$1$5.run(WebSocket.java:107) [bundleFile:?]
at io.socket.thread.EventThread$2.run(EventThread.java:80) [bundleFile:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_232]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_232]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
Caused by: java.io.EOFException
at okio.RealBufferedSource.require(RealBufferedSource.java:60) ~[?:?]
at okio.RealBufferedSource.readByte(RealBufferedSource.java:73) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:113) ~[?:?]
at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:97) ~[?:?]
at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:262) ~[?:?]
at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:201) ~[?:?]
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141) ~[?:?]
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
... 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