Open dsouzarc opened 4 years ago
Seeing the same problem here. Put a bit of debugging code in and the server replies with a 503 and the body "Bad Gateway".
The URL for the error that is causing this is https://p51-ubiquityws.icloud.com:443/ws/<dsid>/item/0
...
I don't think <dsid>
is normal in the URL
I do not know. I had a look and tried seeing what icloud does with ubuiquityws.icloud.com but I did not find a single thing that uses that webservice endpoint. The icloud.com website in a browser is not using it. Things like Notes on icloud.com which I know where using ubiquityws before now seem to use ckdatabasews.
I am wondering if ubuiquityws is maybe not used at all anymore? If looking at the Drive webservice there's a /RetreiveAppLibraries endpoint that seems to be delivering App-specific folders. Maybe that's a replacement?
@Quentame You got any idea?
So, I did a bit more diging. Here's my theory:
Looking further into this error, my current theory is that ubiquityws is deprecated and not usable anymore for most people. I did install MacOS 10.9 in a VM and grabbed the traffic as that is using the older ubd system according to https://eclecticlight.co/2016/02/09/icloud-some-explainers/.
What I did get was a system that does not sync any files and an error message in the traffic dump that indicates that the user was migrated. I am not sure what the replacement service is. There's a call in drive that will display the App Library which looks suspiciously like the old ubuiquity data but does not contain everything I believe. Some stuff might be in the ckdatabasews service, which seems to be true for notes at least... https://github.com/picklepete/pyicloud/pull/294 has the App Library call added but this needs further development time.
The problem
Ubiquity Service Error
After logging in (and verifying that logging in is working via printing out a list of verified devices on the iCloud account), calling
api.files.dir()
andapi.files['com~apple~Notes']
raises aPyiCloudAPIResponseException
due toService Unavailable (503)
, however, Apple's System Services page shows that all systems are online.Environment
pip show pyicloud
): Version: 0.9.7python -V
): Python 2.7.16Traceback/Error logs
Additional information
Is there a way to see all files (including iPhone backups) stored on iCloud? Example: iterating through these purple Backup files: