iCloud Binding Crashing - 2.5

Thank you very much for the quick solution! Works like a charm :wink:

Great to hear!

Just to let you know, the iCloud Account Offline issue has finally hit me. I installed your updated binding and all is back working. Thank you for your effort and support of the community.

1 Like

Thanks a lot for your quick help. It’s running on my side for 6,5h now without any major issues.

Hi,
Without any changes from my side the iCloud things stopped working a few days ago. My setup:

  • Raspberry Pi 2b
  • Openhab 2.5.1-2
  • iCloud things active: account and 2 iPhones

I read this post and assumed that version 2.5.1-2 should have solved my issue, but it didn’t. Shoud I do something else than installing 2.5.1-2?

This is what the log says:

2020-01-25 15:20:02.743 [WARN ] [l.handler.ICloudAccountBridgeHandler] - Unable to refresh device data
java.io.IOException: java.util.concurrent.ExecutionException: java.io.EOFException: HttpConnectionOverHTTP@8eba21::DecryptedEndPoint@1d440f8{fmipmobile.icloud.com/17.248.148.106:443<->/192.168.178.16:42432,CLOSED,fill=-,flush=C,to=2/0}
        at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:259) ~[?:?]
        at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:156) ~[?:?]
        at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrl(HttpUtil.java:131) ~[?:?]
        at org.eclipse.smarthome.io.net.http.HttpRequestBuilder.getContentAsString(HttpRequestBuilder.java:135) ~[?:?]
        at org.openhab.binding.icloud.internal.ICloudConnection.callApi(ICloudConnection.java:88) ~[?:?]
        at org.openhab.binding.icloud.internal.ICloudConnection.requestDeviceStatusJSON(ICloudConnection.java:69) ~[?:?]
        at org.openhab.binding.icloud.internal.handler.ICloudAccountBridgeHandler.lambda$0(ICloudAccountBridgeHandler.java:88) ~[?:?]
        at org.eclipse.smarthome.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:101) [bundleFile:?]
        at org.eclipse.smarthome.core.cache.ExpiringCache.getValue(ExpiringCache.java:72) [bundleFile:?]
        at org.openhab.binding.icloud.internal.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:145) [bundleFile:?]
        at org.openhab.binding.icloud.internal.handler.ICloudDeviceHandler.refreshData(ICloudDeviceHandler.java:112) [bundleFile:?]
        at org.openhab.binding.icloud.internal.handler.ICloudDeviceHandler.initialize(ICloudDeviceHandler.java:103) [bundleFile:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
        at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
        at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?: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.ExecutionException: java.io.EOFException: HttpConnectionOverHTTP@8eba21::DecryptedEndPoint@1d440f8{fmipmobile.icloud.com/17.248.148.106:443<->/192.168.178.16:42432,CLOSED,fill=-,flush=C,to=2/0}
        at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[?:?]
        at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[?:?]
        at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:685) ~[?:?]
        at org.eclipse.smarthome.io.net.http.HttpUtil.executeUrlAndGetReponse(HttpUtil.java:250) ~[?:?]
        ... 21 more
Caused by: java.io.EOFException: HttpConnectionOverHTTP@8eba21::DecryptedEndPoint@1d440f8{fmipmobile.icloud.com/17.248.148.106:443<->/192.168.178.16:42432,CLOSED,fill=-,flush=C,to=2/0}
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.earlyEOF(HttpReceiverOverHTTP.java:335) ~[?:?]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1526) ~[?:?]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.shutdown(HttpReceiverOverHTTP.java:209) ~[?:?]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:147) ~[?:?]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:73) ~[?:?]
        at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:133) ~[?:?]
        at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:154) ~[?:?]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[?:?]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[?:?]
        at org.eclipse.jetty.io.ssl.SslConnection$1.run(SslConnection.java:143) ~[?:?]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) ~[?:?]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) ~[?:?]
        ... 1 more

Any advice would be welcome.

It will be solved in the next update (my changes are merged now).
If you want to use the binding, use my version linked above.

Thanks! I’ll try the new binding.

Edit: works fine! iCloud things and related rules are up and running. Thanks a lot!

Hi all. I’m running 2.5.3 Release build, and have this issue. FindMyIphone and battery percentage work fine, but Location, Last update and charging status do not report anything. Used to work fine.

Presumably, the fix that is in this 2.5.2 SNAPSHOT .jar are already incorporated so I’m baffled as to what could be causing the issue. IS there a way to renew the certificates as someone mentioned above?

UPDATE: I did post to say the update to 2.5.4 fixed it but it, in fact, did not. Battery level, FindMy and LocationLastUpdate are the only thing working. I’m stumped.