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

Kiwix fails to display archived ZIMs of websites based on Vuepress/Vitepress #1324

Closed
loomweaver opened this issue Jan 12, 2025 · 4 comments
Closed
Assignees
Milestone

Comments

@loomweaver
Copy link

loomweaver commented Jan 12, 2025

Not entirely sure where exactly this issue belongs to, but I couldn't find any similar issues open.

Issue occurs when attempting to open any ZIM of a website based on Vuepress/Vitepress static site generators.
Inspecting the ZIM file, it seems like all of the contents of the website are present in the ZIM (you can also momentarily see the proper contents of the page while website is being loaded from ZIM), but Kiwix just fails to display them due to website behavior changing when archived to ZIM.

Attempted archiving using both zimit.kiwix.org, and local Zimit Docker image - playing with Browsertrix Crawler/Puppeteer settings didn't help (and I doubt it will, since I'm guessing that the problem is that internal JS attempts some kind of network request, and defaults to showing 404 error when it fails, as per NotFound.vue component of Vitepress).

It's possible that there is a workaround based on blockRules or other Zimit settings I'm not aware of, but I wasn't able to find one.

Websites I've tested and confirmed this behavior on:

Image

@kelson42 kelson42 self-assigned this Jan 12, 2025
@kelson42 kelson42 added this to the 2.5.0 milestone Jan 12, 2025
@kelson42
Copy link
Collaborator

@loomweaver Thank you for reporting your issue. This is the right place, at least as this stage.

We will have to check a few things to be sure to identify if this is a problem with the ZIM or with the reader.

Can you please verify which version of Kiwix do you use? If you don't use version 2.4, I would recommend to give a try with latest version to see of you still have the issue.

@loomweaver
Copy link
Author

@kelson42 I've tested with Kiwix-Desktop for Windows 2.4.1 (latest), and Kiwix-Desktop 2.3.1 for Ubuntu 24.04.1 LTS respectively, the behavior is the same.
Attached the video for your convenience, you can see that the page contents are available momentarily before crashing to 404 page.

Screencast.from.2025-01-12.13-48-28.webm

@kelson42
Copy link
Collaborator

@benoit74 Maybe you have straight a comment to make at this point?

@benoit74
Copy link

This is definitely a scraper issue, but I have no clue what the problem is.

I've opened openzim/zimit#452 to have a look into it.

I will close this issue since this is not a scraper problem.

@benoit74 benoit74 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2025
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

3 participants