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

Unable to download a ZIM file #657

Open
kelson42 opened this issue Aug 5, 2023 · 1 comment
Open

Unable to download a ZIM file #657

kelson42 opened this issue Aug 5, 2023 · 1 comment

Comments

@kelson42
Copy link
Collaborator

kelson42 commented Aug 5, 2023

Wanted to download a ZIM file which (from the UI) seems available
image

But when I try to click on the "Download ZIM". this is what I get:
image

Either the ZIM file should be available, or we should request to regenerate the ZIM. In worse case we should display a user-friendly error

@audiodude
Copy link
Member

We hide the "download ZIM" link after 14 days, which is calculated by the WP1 server. This is based on the assumption that the fie lives in the Zimfarm S3 storage for that long. If the ZIM file is deleted by the Zimfarm for any reason before that, you will likely see this message.

We could alternately do a "background poll" of the ZIM file, maybe with a HEAD request to see if it is 404, and use that to decide whether to show the download link?

Alternately, this could have been caused by an error in Zimfarm not being reported as such to WP1 (and the file never being created).

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

No branches or pull requests

2 participants