hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
4.13k stars 140 forks source link

last version bookmarks import error #281

Closed nsk closed 2 months ago

nsk commented 3 months ago

hi , on the latest pull version, still impossible to import a list of favorites in drag and drop mode from chrome, it says that something is going wrong?

chrome_7uBi5VRQ5r

kamtschatka commented 3 months ago

Please post the logs, the screenshot alone does not help.

nsk commented 3 months ago

@kamtschatka I have nothing in the logs

kamtschatka commented 3 months ago

There is either something in the logs of the "web" container or in the devtools. alternatively you can also provide the file you want to import (i am also in discord, if you do not want to share it publicly)

carduswork commented 2 months ago

@kamtschatka got the same error,here is the log in chrome and web container ,maybe helpful image image image

kamtschatka commented 2 months ago

I just tried it with my installation and everything works fine, so must have to do with your state/bookmark file. What happens? Does it not import anything at all, or are some of them skipped? Can you provide the bookmarks file?

carduswork commented 2 months ago

I exported my bookmark file from a platform like raindrop,it works fine after i changed my bookmark file to the file exported from my chrom,thanks!

I just tried it with my installation and everything works fine, so must have to do with your state/bookmark file. What happens? Does it not import anything at all, or are some of them skipped? Can you provide the bookmarks file?

kamtschatka commented 2 months ago

from a platform like raindrop, or raindrop? I would like to try that out when I am back home. There is a safeguard against importing completely random bookmark files, but maybe there is a slight difference between the browser exported format and whatever you tried.

nsk commented 2 months ago

hi I did the conversion to .txt via the CLI do you think it would be possible to directly import the all-linx.txt directly into the interface without going through the CLI, I tried the other way to do it too but it doesn't work

kamtschatka commented 2 months ago

At some point you'll have to provide the file or some instructions for me to reproduce what you are doing, otherwise whis discussion will go nowhere

nsk commented 2 months ago

I have a raindrop account I'm trying this way I'll come back and tell you if it works later

kamtschatka commented 2 months ago

seems like the file simply has too many URLs in there, causing the requests to get too big. I would also recommend deleting the export.zip again

nsk commented 2 months ago

how many links max in the file?? do you think ? thx

kamtschatka commented 2 months ago

The maximum length the URL can get is 15000 characters, after that this error happens. each bookmark adds 26 characters to the URL length + whatever you use to access your installation. This leads to a maximum of around 600 for my installation. Go for roughly 500 and you should be fine.

I have also opened a PR to limit the length automatically