Issue with iCloud Login 11th June

User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Issue with iCloud Login 11th June

Post 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
User avatar
McJohn
Posts: 653
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: Issue with iCloud Login 11th June

Post 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
midd
Posts: 373
Joined: Sun Apr 18, 2010 3:00 pm

Re: Issue with iCloud Login 11th June

Post 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.
Indigo 7, Monterey (12.1) on a 2009 Mac Pro..
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Issue with iCloud Login 11th June

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Issue with iCloud Login 11th June

Post 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
raoul
Posts: 41
Joined: Tue Jun 11, 2019 5:16 am

Re: Issue with iCloud Login 11th June

Post by raoul »

Thank you for the update, good to know the reasons. I'm another one who's lost access.
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Post 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
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Post 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
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Post 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
raoul
Posts: 41
Joined: Tue Jun 11, 2019 5:16 am

Re: Issue with iCloud Login 11th June

Post by raoul »

Thanks, working well again.
autolog
Posts: 4000
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK [GMT aka UTC]
Contact:

Re: Issue with iCloud Login 11th June

Post by autolog »

+1

Appreciate the problem solving and quick fix to resolve this - thank you. :D
User avatar
McJohn
Posts: 653
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: Issue with iCloud Login 11th June

Post 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!
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Issue with iCloud Login 11th June

Post 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
User avatar
McJohn
Posts: 653
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: Issue with iCloud Login 11th June

Post 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
User avatar
GlennNZ
Posts: 1604
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Issue with iCloud Login 11th June

Post 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
Post Reply

Return to “FindFriendsMini Plugin”