Comments (16)
@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.
Awesome, let me put in an error message for HTTP 412
indicating to check the password requirements for future users! :)
from icloud-photos-sync.
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.
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.
Are you using either (1) iCloud Shared Photo Library and/or (2) Advanced Data Protection?
from icloud-photos-sync.
Yep, (1)
from icloud-photos-sync.
Potential duplicate of #128
from icloud-photos-sync.
@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.
Thanks for the heads up - but unfortunately still the same issue...
from icloud-photos-sync.
Do you have a new error code?
from icloud-photos-sync.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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.
That's weird - are you able to login to icloud.com through the browser?
from icloud-photos-sync.
Yes, without any issues
from icloud-photos-sync.
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.
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.
Closed by f521f32
from icloud-photos-sync.
Related Issues (20)
- Unexpected error while setting up iCloud Photos caused by VALIDATOR_PHOTOS_SETUP_RESPONSE HOT 4
- TypeError: Converting circular structure to JSON HOT 16
- Provided Grafana Dashboard example does not show any data HOT 12
- Feature Request: Remove password from environment HOT 7
- LIBRARY_ASSET_MODIFICATION_TIME: File's modification time does not match iCloud record HOT 4
- Handle EACCES MFA Server Error HOT 2
- Handle 'incorrect MFA code' scenario HOT 2
- Library Version 2 HOT 2
- Initial Sync stuck at the last ~14.000 assets HOT 27
- Implementing new iCloud authentication process HOT 7
- Use Continuation Marker instead of start rank
- Hard to read logs on Synology HOT 30
- PID locked when attempting sync HOT 10
- [83730a] icloud-photos-sync: iCloudAuthError: Unable to acquire PCS cookies
- [b63792] icloud-photos-sync: SyncError: Sync did not complete successfully within expected amount of tries
- [9b978c] icloud-photos-sync: iCloudPhotosError: Unexpected error while setting up iCloud Photos
- Too many files - how to analyze? HOT 1
- token command not working properly? HOT 5
- exec format error(aarch64) rassberry pi 5 HOT 2
- Reintroduce upstream axios-har-tracker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icloud-photos-sync.