Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR Gone (410) #1025

Open
agenteo opened this issue Dec 22, 2024 · 1 comment
Open

ERROR Gone (410) #1025

agenteo opened this issue Dec 22, 2024 · 1 comment

Comments

@agenteo
Copy link

agenteo commented Dec 22, 2024

Summary

I am seeing a bunch of errors that prevent images downloads and I'd like to learn what they are about.

Context

Running the following command: ./icloudpd-1.25.0-macos-amd64 --directory /Volumes/externalDisk/iCloudDownloads/ --username [email protected]

I see the following error messages:

2024-12-22 21:20:50 DEBUG    Downloading /Volumes/externalDisk/iCloudDownloads/2023/10/30/IMG_1110.PNG...
2024-12-22 21:20:50 ERROR    Gone (410)
2024-12-22 21:20:50 ERROR    Error downloading IMG_1110.PNG, retrying after 5 seconds...
2024-12-22 21:20:55 ERROR    Gone (410)
2024-12-22 21:20:55 ERROR    Error downloading IMG_1110.PNG, retrying after 10 seconds...
2024-12-22 21:21:05 ERROR    Gone (410)
2024-12-22 21:21:05 ERROR    Error downloading IMG_1110.PNG, retrying after 15 seconds...
2024-12-22 21:21:20 ERROR    Gone (410)
2024-12-22 21:21:20 ERROR    Error downloading IMG_1110.PNG, retrying after 20 seconds...
2024-12-22 21:21:41 ERROR    Gone (410)
2024-12-22 21:21:41 ERROR    Error downloading IMG_1110.PNG, retrying after 25 seconds...

The script moves on to the next file but the same error is triggered. I noticed killing and restarting the script helps.

Is this an HTTP 410? Why would the image be gone? I am the only owner of this iCloud account and I am not deleting these photos from anywhere else.

Thanks for the clarification!

@iowk
Copy link
Contributor

iowk commented Dec 23, 2024

This is because icloudpd fetches 100 download urls per request, and start downloading the files one by one.

However, the url can expire after several hours. Downloading from the expired url causes Gone (410) error.

For example, if it takes too long to download the first 80 photos, Gone (410) error occurs for the 81st ~ 100th photos.

To fix this, we will have to fix pyicloud_ipd/photos.py to refetch the urls when expired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants