[GH-ISSUE #922] Brave sync failing with parse error (Empty document) #596

Closed
opened 2026-02-25 22:37:35 +03:00 by kerem · 8 comments
Owner

Originally created by @Victor4X on GitHub (Jul 28, 2021).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/922

Describe the bug

When trying to sync bookmarks from Brave to Google drive, it fails with a parse error (see debug log)

To Reproduce

Steps to reproduce the behavior:

  1. Add Google drive configuration (all default)
  2. Start sync
  3. See error

Expected behavior

I expect my bookmarks to be synced to the bookmarks file on Google drive without an error

Screenshots

Account configuration:
image

Desktop

  • OS: Arch Linux
  • Browser: Brave
  • Browser Version: 1.26.77
  • Floccus version: 4.6.4
  • Floccus sync method: Google drive

Server

Not applicable

Debug log

2021-07-28T07:26:23.644Z Starting sync process for account Google Drive: bookmarks.xbel
2021-07-28T07:26:23.664Z onSyncStart: begin
2021-07-28T07:26:25.000Z Syncing failed with Parse Error: <html xmlns="http://www.w3.org/1999/xhtml"><body><parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"><h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">error on line 1 at column 1: Document is empty
</div><h3>Below is a rendering of the page up to the first error.</h3></parsererror></body></html>
2021-07-28T07:26:25.003Z onSyncFail
  • Debug log provided

Additional context

I previously set up Floccus (with Google drive) on Firefox on a different machine running Fedora without problems. I have tried removing the bookmarks.xbel file from the Fedora sync, but that did not change the error, and the file is not recreated when syncing from Brave.

Originally created by @Victor4X on GitHub (Jul 28, 2021). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/922 ### Describe the bug When trying to sync bookmarks from Brave to Google drive, it fails with a parse error (see debug log) ### To Reproduce Steps to reproduce the behavior: 1. Add Google drive configuration (all default) 2. Start sync 3. See error ### Expected behavior I expect my bookmarks to be synced to the bookmarks file on Google drive without an error ### Screenshots Account configuration: ![image](https://user-images.githubusercontent.com/18222586/127283149-a34dedcd-7726-4769-a6e1-833bdfced2b8.png) ### Desktop - OS: Arch Linux - Browser: Brave - Browser Version: 1.26.77 - Floccus version: 4.6.4 - Floccus sync method: Google drive ### Server Not applicable ### Debug log ``` 2021-07-28T07:26:23.644Z Starting sync process for account Google Drive: bookmarks.xbel 2021-07-28T07:26:23.664Z onSyncStart: begin 2021-07-28T07:26:25.000Z Syncing failed with Parse Error: <html xmlns="http://www.w3.org/1999/xhtml"><body><parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"><h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">error on line 1 at column 1: Document is empty </div><h3>Below is a rendering of the page up to the first error.</h3></parsererror></body></html> 2021-07-28T07:26:25.003Z onSyncFail ``` - [X] Debug log provided ### Additional context I previously set up Floccus (with Google drive) on Firefox on a different machine running Fedora without problems. I have tried removing the bookmarks.xbel file from the Fedora sync, but that did not change the error, and the file is not recreated when syncing from Brave.
kerem 2026-02-25 22:37:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@marcelklehr commented on GitHub (Jul 28, 2021):

Hey @Victor4X

I'm sorry for your trouble. I'll try to help troubleshoot.

Does the file exist in your GDrive? Did you enable encryption in firefox? Are there multiple bookmarks.xbel files in your GDrive (perhaps in your Trash even)?

the file is not recreated when syncing from Brave.

This is likely because your local folder is empty (which is the default if you leave the default settings).

<!-- gh-comment-id:888113217 --> @marcelklehr commented on GitHub (Jul 28, 2021): Hey @Victor4X I'm sorry for your trouble. I'll try to help troubleshoot. Does the file exist in your GDrive? Did you enable encryption in firefox? Are there multiple bookmarks.xbel files in your GDrive (perhaps in your Trash even)? > the file is not recreated when syncing from Brave. This is likely because your local folder is empty (which is the default if you leave the default settings).
Author
Owner

@Victor4X commented on GitHub (Jul 28, 2021):

Hi!
After reading your reply, I tried deleting the file from Trash, and I successfully synced after that!

I might have to tweak the firefox settings if I want to do cross-syncing, as the bookmarks.xbel that it generated seems to have been what caused the trouble.

Is there a way to look at the bookmarks.xbel file in a readable format, so I can try to spot the problem or upload them here?

<!-- gh-comment-id:888118635 --> @Victor4X commented on GitHub (Jul 28, 2021): Hi! After reading your reply, I tried deleting the file from Trash, and I successfully synced after that! I might have to tweak the firefox settings if I want to do cross-syncing, as the bookmarks.xbel that it generated seems to have been what caused the trouble. Is there a way to look at the bookmarks.xbel file in a readable format, so I can try to spot the problem or upload them here?
Author
Owner

@marcelklehr commented on GitHub (Jul 28, 2021):

Feel free to upload the file to my file drop: https://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw

<!-- gh-comment-id:888121152 --> @marcelklehr commented on GitHub (Jul 28, 2021): Feel free to upload the file to my file drop: https://cloud.marcelklehr.de/s/PCi3iLWrzdMZSmw
Author
Owner

@Victor4X commented on GitHub (Jul 28, 2021):

Done =)

<!-- gh-comment-id:888122853 --> @Victor4X commented on GitHub (Jul 28, 2021): Done =)
Author
Owner

@marcelklehr commented on GitHub (Jul 28, 2021):

Yep, you set an encryption passphrase in Firefox but not in Brave. For successful sync, both instances need the passphrase (or set it to empty in both, for no encryption).

<!-- gh-comment-id:888125049 --> @marcelklehr commented on GitHub (Jul 28, 2021): Yep, you set an encryption passphrase in Firefox but not in Brave. For successful sync, both instances need the passphrase (or set it to empty in both, for no encryption).
Author
Owner

@Victor4X commented on GitHub (Jul 28, 2021):

Damn, I didn't remember doing that at all. Thank you! Maybe parsing errors should hint at this potentially being the problem? I don't think I would've thought about it myself :p

<!-- gh-comment-id:888126950 --> @Victor4X commented on GitHub (Jul 28, 2021): Damn, I didn't remember doing that at all. Thank you! Maybe parsing errors should hint at this potentially being the problem? I don't think I would've thought about it myself :p
Author
Owner

@marcelklehr commented on GitHub (Jul 28, 2021):

Maybe parsing errors should hint at this potentially being the problem?

Yeah, just thought the same thing. I'll change the error message :)

Cheers!

<!-- gh-comment-id:888127578 --> @marcelklehr commented on GitHub (Jul 28, 2021): > Maybe parsing errors should hint at this potentially being the problem? Yeah, just thought the same thing. I'll change the error message :) Cheers!
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1476936958 --> @github-actions[bot] commented on GitHub (Mar 20, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
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/floccus#596
No description provided.