Page 1 of 3

Issue with iCloud Login 11th June

Posted: Tue Jun 11, 2019 3:23 am
by GlennNZ
Hi all,

Seems like an issue has developed with iCloud login - despite not having 2FA enabled the plugin can not connect. I’m getting a error [421] returned from iCloud.
It seems very early days but a few isolated case reports of the same from a few similar libraries used to connect.
Worried this may be a apple icloud server change - which may take a while to fix/not be fixable.
Time will tell.

Glenn


Sent from my iPad using Tapatalk

Re: Issue with iCloud Login 11th June

Posted: Tue Jun 11, 2019 6:36 am
by McJohn
Thanks for the pro-active message Glenn!
Same issue here:
FindFriendsMini Error Login failed - Check username/password - has it changed recently.

Maybe it has something todo with the new app Apple is developing:
https://www.cnet.com/news/find-my-frien ... p-find-my/

We hope and see if you can fix this problem, thanks for your work.

John

Re: Issue with iCloud Login 11th June

Posted: Tue Jun 11, 2019 8:08 am
by midd
ok good. I just experienced it this morning and after migrating Indigo from one Mac to another. I didn't have too much time to play with it before work this morning. But I was able to login at AppleID.cm so I was really stumped.

Re: Issue with iCloud Login 11th June

Posted: Tue Jun 11, 2019 8:43 am
by jay (support)
I don't know if this is related, but iCloud mail has been up and down for me this morning. Just FYI.

Issue with iCloud Login 11th June

Posted: Tue Jun 11, 2019 3:16 pm
by GlennNZ
Looks like apple end change, affecting everything using pyicloud or similar.... bugger...

https://community.home-assistant.io/t/i ... x/121188/5

https://github.com/home-assistant/home- ... sues/24476

https://stackoverflow.com/questions/565 ... or-authent

Code: Select all

++++ Breaking News +++++

FYI - It has been reported that Apple changed something on there end that is breaking the pyicloud.py program that sits between HA components and Apple. There is some issue where authorizing the access to the Apple iCloud account fails. It is happening on all versions of HA and on icloud3 (all versions), along with the base icloud component that is part of HA. I’ve tried it on 0.92.0, 0.93.0, 0.93.2, 0.94.0 & 0.94.1.

Everything works, or seems to, until the account needs to be reauthorized. I’m now keeping up with what is going on and am dead in the water until this issue is resolved.


Does seem Web browser can authenticate though, so may be fixable, and trackable. If interested in rolling news this would seem best issue to follow:
https://github.com/picklepete/pyicloud/issues/206



Sent from my iPad using Tapatalk

Re: Issue with iCloud Login 11th June

Posted: Wed Jun 12, 2019 7:57 am
by raoul
Thank you for the update, good to know the reasons. I'm another one who's lost access.

Re: Issue with iCloud Login 11th June

Posted: Wed Jun 12, 2019 7:32 pm
by GlennNZ
Further to this

Looks like apple changed their login completely - requiring a dsWebAuth token, and a different URL dsma.apple.com to generate as a prior step.

Good news is it does seem that adding this extra step, should work. Interested to see if anyone else fixes shortly, but will look at implementing for testing/shortly.

Glenn


Sent from my iPad using Tapatalk

Re: Issue with iCloud Login 11th June

Posted: Thu Jun 13, 2019 6:31 pm
by GlennNZ
Update:

Have authentication working okay again with some minor changes. There is a version 0.9.4 noAPI branch on GitHub if any are super keen.

Was some reports of throttling issues from apple with this approach - but running for 24 hours and haven’t seen this issue. Likely because cookie handling is different as opposed to standard library I suspect.

Will test a bit further and update soon.

Glenn


Sent from my iPad using Tapatalk

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 12:04 am
by GlennNZ
Update:

Version 0.9.6

In Plugin Store
Bypasses current icloud connection issue without issue that I can currently detect.

Main library - pyicloud library still being worked on, so may be future updates, but this fix seems to work well.

Glenn

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 3:44 am
by raoul
Thanks, working well again.

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 4:05 am
by autolog
+1

Appreciate the problem solving and quick fix to resolve this - thank you. :D

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 4:29 am
by McJohn
Thank you very much for all your work Glenn.

Just installed 0.9.6 but we are getting the following (new) error:

FindFriendsMini Error Login Failed General Error. ('Connection aborted.', error(54, 'Connection reset by peer')){'request': <PreparedRequest [POST]>, 'response': None}
FindFriendsMini Error ('Connection aborted.', error(54, 'Connection reset by peer'))


What are we doing wrong?
(ID and password aren't changed)

Thanks for your help!

Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 4:50 am
by GlennNZ
McJohn wrote:Thank you very much for all your work Glenn.

Just installed 0.9.6 but we are getting the following (new) error:

FindFriendsMini Error Login Failed General Error. ('Connection aborted.', error(54, 'Connection reset by peer')){'request': <PreparedRequest [POST]>, 'response': None}
FindFriendsMini Error ('Connection aborted.', error(54, 'Connection reset by peer'))


What are we doing wrong?
(ID and password aren't changed)

Thanks for your help!

That’s no good!

But not sure - probably need the whole log.

At a guess relates to version of OSX running and a SSL incompatibility with older versions.
What Mac OSX version?
What indigo/python version?

You may be missing some ssl needed bits.

Could try

Code: Select all

pip install requests[security]
https://stackoverflow.com/questions/318 ... difference

May have some issues with pip working though from previous reports

I’ll have a look at the code and see if any way to specify ssl type




Sent from my iPad using Tapatalk

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 5:27 am
by McJohn
Thanks for the quick answer!

Mac OSX version: 10.10.5
Indigo version: Indigo 7.3.0
Python: 2.7.15 (says the terminal..., but the plugin says 2.7.10)

We tried:

Code: Select all

pip install requests[security]
And after the download and install a restart of the Indigo Server but unfortunately the same error appeared.

Below some log.

Thanks!

Starting plugin "FindFriendsMini 0.9.6" (pid 1411)
FindFriendsMini
FindFriendsMini ================================================ Initializing New Plugin Session =================================================
FindFriendsMini Plugin name: FindFriendsMini
FindFriendsMini Plugin version: 0.9.6
FindFriendsMini Plugin ID: com.GlennNZ.indigoplugin.FindFriendsMini
FindFriendsMini Indigo version: 7.3.0
FindFriendsMini Python version: 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
FindFriendsMini Python Directory: /System/Library/Frameworks/Python.framework/Versions/2.7
FindFriendsMini Major Problem equals: 0
FindFriendsMini ==================================================================================================================================
FindFriendsMini Debug logLevel = 10[/color]
Started plugin "FindFriendsMini 0.9.6"
FindFriendsMini Debug Starting FindFriendsMini. startup() method called.
FindFriendsMini Debug AppleAPIID is not empty - logging in to appleAPI now.
FindFriendsMini Debug Attempting login...
FindFriendsMini Error Login Failed General Error. ('Connection aborted.', error(54, 'Connection reset by peer')){'request': <PreparedRequest [POST]>, 'response': None}
FindFriendsMini Error ('Connection aborted.', error(54, 'Connection reset by peer'))[/color]
FindFriendsMini Debug Login to icloud Failed.
FindFriendsMini Debug deviceStartComm() method called.


FindFriendsMini Debug [{'uiValue': 'Waiting', 'value': False, 'key': 'deviceIsOnline'}]
FindFriendsMini Debug ronConCurrentThread() method called.
FindFriendsMini Debug secondsbetween Check Equal:120
FindFriendsMini Debug ronConcurrrent loop: pluginshuttingdown=False Loop Running.
FindFriendsMini FindFriendsMini: Update Checking. Your Current version is: 0.9.6
FindFriendsMini Debug Current version is: 0.9.6
FindFriendsMini Debug Getting latest release from ghawken/IndigoPlugin-iFindFriendMini...
FindFriendsMini Debug GET /repos/ghawken/IndigoPlugin-iFindFriendMini/releases/latest
FindFriendsMini Debug HTTP Err result: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 2244 100 2244 0 0 2819 0 --:--:-- --:--:-- --:--:-- 2819

Re: Issue with iCloud Login 11th June

Posted: Fri Jun 14, 2019 5:31 am
by GlennNZ
Thanks

Sounds like you have two different versions of python
Have a good read here:
viewtopic.php?f=108&t=19126

Need the indigo python version to install requests[security]

Or may be another issue altogether :(

I’ll have a look as soon as can




Sent from my iPhone using Tapatalk