Coder Social home page Coder Social logo

Comments (16)

steilerDev avatar steilerDev commented on May 26, 2024 1

@bbsan2k I worked on this a little bit, could you please pull the latest nightly build, enable debug logging and crash reporting and report back?

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024 1

Awesome, let me put in an error message for HTTP 412 indicating to check the password requirements for future users! :)

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

Thanks for looking into it!
I at least get another error:

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Experienced fatal error at 2/18/2023, 12:23:31 PM: AppError (FATAL): Sync failed caused by iCloudAuthError (FATAL): iCloud Authentication failed caused by iCloudAuthError (FATAL): Unexpected HTTP response caused by Request failed with status code 412 (Error Code: f5f8ccd7-ab04-4c04-910c-ccea3e5de77e)
context:{}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

log:

[2023-02-18T11:23:29.513Z] INFO i-Cloud: Initiating iCloud connection
[2023-02-18T11:23:29.514Z] DEBUG MFA-Server: Preparing MFA server on port 80
[2023-02-18T11:23:29.516Z] DEBUG i-Cloud-Auth: Trying to load trust token from disk
[2023-02-18T11:23:29.558Z] DEBUG i-Cloud-Auth: Acquired trust token from file
[2023-02-18T11:23:29.667Z] INFO i-Cloud: Authenticating user
[2023-02-18T11:23:31.291Z] ERROR Error-Handler: AppError (FATAL): Sync failed caused by iCloudAuthError (FATAL): iCloud Authentication failed caused by iCloudAuthError (FATAL): Unexpected HTTP response caused by Request failed with status code 412 (Error Code: f5f8ccd7-ab04-4c04-910c-ccea3e5de77e)
context:{}

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

Ok, that's interesting...
If I sync without manually acquiring a token before it runs.
On the next sync I get the error above - so it seems there is some issue with token based re-authentication

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

Are you using either (1) iCloud Shared Photo Library and/or (2) Advanced Data Protection?

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

Yep, (1)

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

Potential duplicate of #128

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

@bbsan2k 4a03260 has added experimental support for shared Photo Library - have a try on the nightly docker image tag and see if your issue persists

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

Thanks for the heads up - but unfortunately still the same issue...

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

Do you have a new error code?

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Welcome to icloud-photos-sync, v.1.1.0-beta!
Made with <3 by steilerDev
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Authenticating user...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Experienced fatal error at 3/11/2023, 12:23:04 PM: AppError (FATAL): Sync failed caused by iCloudAuthError (FATAL): iCloud Authentication failed caused by iCloudAuthError (FATAL): Unexpected HTTP response caused by Request failed with status code 412 (Error Code: a005b26e-3853-48cb-9c63-293868500c3d)
context:{}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 bbsan@archserver   ~ 

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

That's weird - are you able to login to icloud.com through the browser?

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

Yes, without any issues

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

I know exactly where the error is happing: This is the first request send to the backend containing your username, password and trust token. This should lead to either (200) Authentication Successful or (409) Conflict -> MFA required.

Your account however responds with 412 (Precondition failed). And I don't know how to handle this...

Could you look at the network logs of your browser right after you entered the password. There should be a POST to the /signin endpoint. How does it respond and what happens next?

from icloud-photos-sync.

bbsan2k avatar bbsan2k commented on May 26, 2024

LOL. Ok I figured it out: icloud is forcing me to change my password because it thinks it is not secure enough. Never saw this prompt before, as I normally login using Safari.
After changing my password it is fixed!

from icloud-photos-sync.

steilerDev avatar steilerDev commented on May 26, 2024

Closed by f521f32

from icloud-photos-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.