[GH-ISSUE #281] last version bookmarks import error #184

Closed
opened 2026-03-02 11:47:24 +03:00 by kerem · 17 comments
Owner

Originally created by @nsk on GitHub (Jul 7, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/281

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

Originally created by @nsk on GitHub (Jul 7, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/281 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](https://github.com/hoarder-app/hoarder/assets/1135867/70abf0e0-b148-4815-91a5-c6c3b178e0d9)
kerem closed this issue 2026-03-02 11:47:24 +03:00
Author
Owner

@kamtschatka commented on GitHub (Jul 7, 2024):

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

<!-- gh-comment-id:2212354167 --> @kamtschatka commented on GitHub (Jul 7, 2024): Please post the logs, the screenshot alone does not help.
Author
Owner

@nsk commented on GitHub (Jul 7, 2024):

@kamtschatka I have nothing in the logs

<!-- gh-comment-id:2212360218 --> @nsk commented on GitHub (Jul 7, 2024): @kamtschatka I have nothing in the logs
Author
Owner

@kamtschatka commented on GitHub (Jul 7, 2024):

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)

<!-- gh-comment-id:2212365566 --> @kamtschatka commented on GitHub (Jul 7, 2024): 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)
Author
Owner

@carduswork commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2213472296 --> @carduswork commented on GitHub (Jul 8, 2024): @kamtschatka got the same error,here is the log in chrome and web container ,maybe helpful ![image](https://github.com/hoarder-app/hoarder/assets/17943894/639fb0ac-c1b4-4e02-b9c4-c375bbe71588) ![image](https://github.com/hoarder-app/hoarder/assets/17943894/10194280-8068-4f48-82c0-bffb06a9c766) ![image](https://github.com/hoarder-app/hoarder/assets/17943894/6802cf0f-f20c-4394-b7bd-ecd6ff8e0e74)
Author
Owner

@kamtschatka commented on GitHub (Jul 8, 2024):

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?

<!-- gh-comment-id:2213597133 --> @kamtschatka commented on GitHub (Jul 8, 2024): 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?
Author
Owner

@carduswork commented on GitHub (Jul 8, 2024):

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?

<!-- gh-comment-id:2213625708 --> @carduswork commented on GitHub (Jul 8, 2024): 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?
Author
Owner

@kamtschatka commented on GitHub (Jul 8, 2024):

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.

<!-- gh-comment-id:2213657646 --> @kamtschatka commented on GitHub (Jul 8, 2024): 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.
Author
Owner

@nsk commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2214649899 --> @nsk commented on GitHub (Jul 8, 2024): 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
Author
Owner

@kamtschatka commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2214666789 --> @kamtschatka commented on GitHub (Jul 8, 2024): 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
Author
Owner

@nsk commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2214669733 --> @nsk commented on GitHub (Jul 8, 2024): I have a raindrop account I'm trying this way I'll come back and tell you if it works later
Author
Owner

@kamtschatka commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2214682960 --> @kamtschatka commented on GitHub (Jul 8, 2024): 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
Author
Owner

@nsk commented on GitHub (Jul 8, 2024):

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

<!-- gh-comment-id:2214739079 --> @nsk commented on GitHub (Jul 8, 2024): how many links max in the file?? do you think ? thx
Author
Owner

@kamtschatka commented on GitHub (Jul 9, 2024):

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

<!-- gh-comment-id:2218033670 --> @kamtschatka commented on GitHub (Jul 9, 2024): 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
Author
Owner

@Snuupy commented on GitHub (Nov 9, 2024):

I was only able to batch add ~150 urls on my instance

I had ~350 to add so I had to split up adding them

can we increase the character length on the web form?

the error was also not very helpful "Failed to fetch"

<!-- gh-comment-id:2466016475 --> @Snuupy commented on GitHub (Nov 9, 2024): I was only able to batch add ~150 urls on my instance I had ~350 to add so I had to split up adding them can we increase the character length on the web form? the error was also not very helpful "Failed to fetch"
Author
Owner

@MohamedBassem commented on GitHub (Nov 9, 2024):

@Snuupy How did you get your list of links? There's a better importing UI now in the settings than just adding them to the editor box.

<!-- gh-comment-id:2466178966 --> @MohamedBassem commented on GitHub (Nov 9, 2024): @Snuupy How did you get your list of links? There's a better importing UI now in the settings than just adding them to the editor box.
Author
Owner

@Snuupy commented on GitHub (Nov 9, 2024):

@MohamedBassem I had ~500 open tabs in Firefox and used https://addons.mozilla.org/en-US/firefox/addon/export-tabs-urls-and-titles/ to add each window (subject) to each collection. One of my windows had 350 tabs open. It was not an import of any other tools or files (although I have another 4k+ in raindrop I have yet to import)

<!-- gh-comment-id:2466187450 --> @Snuupy commented on GitHub (Nov 9, 2024): @MohamedBassem I had ~500 open tabs in Firefox and used https://addons.mozilla.org/en-US/firefox/addon/export-tabs-urls-and-titles/ to add each window (subject) to each collection. One of my windows had 350 tabs open. It was not an import of any other tools or files (although I have another 4k+ in raindrop I have yet to import)
Author
Owner

@MohamedBassem commented on GitHub (Nov 9, 2024):

@Snuupy As you figured out, importing 350 links from the editor box doesn't give you the best experience. You might be better off using the CLI for such list instead (https://docs.hoarder.app/import#import-using-the-cli), if you're comfortable with using CLIs.

<!-- gh-comment-id:2466189044 --> @MohamedBassem commented on GitHub (Nov 9, 2024): @Snuupy As you figured out, importing 350 links from the editor box doesn't give you the best experience. You might be better off using the CLI for such list instead (https://docs.hoarder.app/import#import-using-the-cli), if you're comfortable with using CLIs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#184
No description provided.