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

web_archive_snapshot_url not showing up in REST API #885

Open
quanganhdo opened this issue Oct 14, 2024 · 2 comments
Open

web_archive_snapshot_url not showing up in REST API #885

quanganhdo opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@quanganhdo
Copy link

I enable Internet Archive integration in my Settings and have access to the archived URLs by hovering the timestamp in the Dashboard, but am not sure why web_archive_snapshot_url is empty for all my links. The Django admin also doesn't show the snapshot URLs.

Did I overlook anything? Thanks.

(I'm running 1.36.0 on railway)

@sissbruecker
Copy link
Owner

Since 1.31.1 the UI will dynamically generate a "fallback" link to the web archive if no specific snapshot URL is stored in the bookmark. But that is not the case for the API currently. I guess it should.

For some background: In general, new snapshots on the IA are only created when you add a single bookmark, either via the UI or the API. It doesn't create snapshots for bookmarks that you have imported though. I removed that functionality as that created a large number of background tasks which then consistently failed due to rate limiting with the web archive API. It also didn't make sense to generate, and then link to, a snapshot from a website in it's current form if the bookmark was added two years ago. So instead it just generates a dynamic link to a snapshot from the time the bookmark was created, and then the IA will usually show you the nearest one. Worst case no snapshot exists but that should be rare.

I guess your issue is with bookmark that were imported then? Otherwise something would be wrong with background tasks, then you could check background_tasks.log for errors.

@sissbruecker sissbruecker added the bug Something isn't working label Oct 16, 2024
@quanganhdo
Copy link
Author

Makes sense. Indeed I imported loads of links into Linkding for a test drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants