[GH-ISSUE #641] 2 Errors E020: Could not parse server response. AND Trying to insert an already existing item into OrderTracker #424

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

Originally created by @tchap2 on GitHub (Aug 24, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/641

Describe the bug
A clear and concise description of what the bug is.

When I sync Firefox toolbar with /xyz folder on server, I get error message:

"E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data "

I DELETED account and folder from Nextcloud (to flush ALL changes from server), then added account again but this time as follows:

When I sync Firefox bookmarks (ROOT) with /xyz folder on server, I get error message: Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'add new account, map local folder "Bookmarks Toolbar" to server folder "/XYZ".'
  2. Click on '.SYNC NOW'
  3. Scroll down to '....' - NOT APPLICABLE
  4. See error
    E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data

To Reproduce - ACTION 2
Steps to reproduce the behavior:

  1. Go to 'add new account, map local ROOT (!!!) folder "Untitled Folder" to server folder "/XYZ".'
  2. Click on '.SYNC NOW'
  3. Scroll down to '....' - NOT APPLICABLE
  4. See error
    Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH

Expected behavior
Completed sync without errors

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: iOS
  • Browser - firefox
  • Browser Version - 79.0
  • Floccus version: 4.2.6
  • Floccus sync method: nextcloud folders

Server (please complete the following information):

  • OS: ---
  • Nextcloud version: 17.0.1
  • Bookmarks app version: ---

Note: Please write down the actual version numbers instead of writing 'latest'.

Debug log
It is often useful to provide a debug log file along with the issue. You can obtain a debug log of the most recent sync runs by clicking 'Debug log' in the bottom right corner of the floccus panel in your browser.

Note: As your debug log usually contains large parts of your bookmark data, instead of attaching it publicly to the issue here, I recommend uploading it privately at the following URL https://klehranlage.net/index.php/s/7nn82NSBsfQKdsJ

  • Debug log provided

Additional context
Add any other context about the problem here.

Originally created by @tchap2 on GitHub (Aug 24, 2020). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/641 **Describe the bug** A clear and concise description of what the bug is. When I sync Firefox toolbar with /xyz folder on server, I get error message: "E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data " I DELETED account and folder from Nextcloud (to flush ALL changes from server), then added account again but this time as follows: When I sync Firefox bookmarks (ROOT) with /xyz folder on server, I get error message: Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH **To Reproduce** Steps to reproduce the behavior: 1. Go to 'add new account, map local folder "Bookmarks Toolbar" to server folder "/XYZ".' 2. Click on '.SYNC NOW' 3. Scroll down to '....' - NOT APPLICABLE 4. See error E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data **To Reproduce - ACTION 2** Steps to reproduce the behavior: 1. Go to 'add new account, map local ROOT (!!!) folder "Untitled Folder" to server folder "/XYZ".' 2. Click on '.SYNC NOW' 3. Scroll down to '....' - NOT APPLICABLE 4. See error Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH **Expected behavior** Completed sync without errors **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: iOS - Browser - firefox - Browser Version - 79.0 - Floccus version: 4.2.6 - Floccus sync method: nextcloud folders **Server (please complete the following information):** - OS: --- - Nextcloud version: 17.0.1 - Bookmarks app version: --- Note: Please write down the actual version numbers instead of writing 'latest'. **Debug log** It is often useful to provide a debug log file along with the issue. You can obtain a debug log of the most recent sync runs by clicking 'Debug log' in the bottom right corner of the floccus panel in your browser. Note: As your debug log usually contains large parts of your bookmark data, instead of attaching it publicly to the issue here, I recommend uploading it privately at the following URL https://klehranlage.net/index.php/s/7nn82NSBsfQKdsJ - [ ] Debug log provided **Additional context** Add any other context about the problem here.
Author
Owner

@marcelklehr commented on GitHub (Aug 24, 2020):

I'm not sure what happened on the first try, but the second try is probably an incarnation of #598 which will be fixed with the next release. I'll leave this open till then.

<!-- gh-comment-id:679075799 --> @marcelklehr commented on GitHub (Aug 24, 2020): I'm not sure what happened on the first try, but the second try is probably an incarnation of #598 which will be fixed with the next release. I'll leave this open till then.
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2020):

@tchap2 Do you still experience this issue?

<!-- gh-comment-id:684877661 --> @marcelklehr commented on GitHub (Sep 1, 2020): @tchap2 Do you still experience this issue?
Author
Owner

@marcelklehr commented on GitHub (Sep 1, 2020):

(The first error could actually be due to nextcloud brute force protection kicking in)

<!-- gh-comment-id:684894383 --> @marcelklehr commented on GitHub (Sep 1, 2020): (The first error could actually be due to nextcloud brute force protection kicking in)
Author
Owner

@CouldBeThis commented on GitHub (Sep 9, 2020):

I am not sure if this is directly helpful but I am going to post in case it's useful to someone else who is a bit dense like me and searches for it.

Also got e020 on new install. Content of the logs was basically

Starting sync process for account nextcloud@host.com
Using normal strategy
Fetching bookmarks
Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server?
JSON.parse: unexpected character at line 1 column 1 of the JSON data

The solution:

In the field labeled nextcloud URL you put the URL of the nextcloud, not the webDAV URL

https://nextcloud.host.com/ not https://nextcloud.host.com/remote.php/dav/files/user/

floccus is clever enough to figure out the rest.

<!-- gh-comment-id:689309158 --> @CouldBeThis commented on GitHub (Sep 9, 2020): I am not sure if this is directly helpful but I am going to post in case it's useful to someone else who is a bit dense like me and searches for it. Also got e020 on new install. Content of the logs was basically ``` Starting sync process for account nextcloud@host.com Using normal strategy Fetching bookmarks Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data ``` The solution: In the field labeled `nextcloud URL` you put the URL of the nextcloud, *not* the webDAV URL `https://nextcloud.host.com/` not `https://nextcloud.host.com/remote.php/dav/files/user/` floccus is clever enough to figure out the rest.
Author
Owner

@marcelklehr commented on GitHub (Sep 18, 2020):

Thanks for all your feedback, folks! I'm currently working on a new iteration of the sync algorithm that should fix this: #651

<!-- gh-comment-id:694870821 --> @marcelklehr commented on GitHub (Sep 18, 2020): Thanks for all your feedback, folks! I'm currently working on a new iteration of the sync algorithm that should fix this: #651
Author
Owner

@marcelklehr commented on GitHub (Oct 5, 2020):

I've since rewritten the sync algorithm to avoid this kind of problems. Head over to https://github.com/marcelklehr/floccus/issues/666 if you'd like to help test the new version.

<!-- gh-comment-id:703721192 --> @marcelklehr commented on GitHub (Oct 5, 2020): I've since rewritten the sync algorithm to avoid this kind of problems. Head over to https://github.com/marcelklehr/floccus/issues/666 if you'd like to help test the new version.
Author
Owner

@fredbcode commented on GitHub (Nov 11, 2020):

This bug still present on 4.4.6, tested with url (not webdav link) nextcloud 20.0.1, Firefox 82.0.2
E020: Impossible de lire la réponse du serveur. L'application de marque-pages est elle installée sur votre serveur? JSON.parse: unexpected character at line 1 column 1 of the JSON data

<!-- gh-comment-id:725529748 --> @fredbcode commented on GitHub (Nov 11, 2020): This bug still present on 4.4.6, tested with url (not webdav link) nextcloud 20.0.1, Firefox 82.0.2 ` E020: Impossible de lire la réponse du serveur. L'application de marque-pages est elle installée sur votre serveur? JSON.parse: unexpected character at line 1 column 1 of the JSON data`
Author
Owner

@fredbcode commented on GitHub (Nov 11, 2020):

Right now I also note that sub directories are duplicated at each synchronization

image

<!-- gh-comment-id:725541654 --> @fredbcode commented on GitHub (Nov 11, 2020): Right now I also note that sub directories are duplicated at each synchronization ![image](https://user-images.githubusercontent.com/5287473/98841206-11371580-2448-11eb-9ace-1668e0fff42a.png)
Author
Owner

@tchap2 commented on GitHub (Nov 13, 2020):

@tchap2 Do you still experience this issue?

Hello, YES! The issue is still there.
After not using Floccus for ~6 months, I again downloaded the addon to Firefox, set up the account (to root folder), and I again received error (below is verbatim from debug logs, the addon shows a shorter version of that error) - this is the only error:

2020-11-13T16:17:27.039Z { [Error: 1 errors]
list:
[ [Error: E020: Could not parse server response. Is the bookmarks app installed on your server?
JSON.parse: unexpected character at line 1 column 1 of the JSON data] ] }
2020-11-13T16:17:27.040Z [Error: E020: Could not parse server response. Is the bookmarks app installed on your server?
JSON.parse: unexpected character at line 1 column 1 of the JSON data]
2020-11-13T16:17:27.041Z Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server?
JSON.parse: unexpected character at line 1 column 1 of the JSON data

Where is this JSON file located (firefox browser, one of my bookmarks http address, nexcloud server?) What is the unexpected character?

I do see that some boomarks where synced, because bookmarks folder on nextcloud server shows these. Log file shows that all bookmarks have been processed and assigned an ID starting with "-#" and also ending with "parentId"

I also tried setting up account as "Nextcloud Bookmarks (legacy)" and when I select radio button and click on "Add Account" nothing happens! I cannot proceed at all. Why? (my firefox is on auto-update, so whatever the latest firefox version is, that version is on my desktop).

All of above problems started happening I believe in Feb/March this year when completely redesigned version of Floccus was released.

BTW, when I set up floccus on Brave browser I get error
Nextcloud API error: {"status":"error","data":"Could not find folder"} Trying to insert an already existing item into OrderTracker: bookmark:1937 E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0

<!-- gh-comment-id:726878699 --> @tchap2 commented on GitHub (Nov 13, 2020): > @tchap2 Do you still experience this issue? Hello, YES! The issue is still there. After not using Floccus for ~6 months, I again downloaded the addon to Firefox, set up the account (to root folder), and I again received error (below is verbatim from debug logs, the addon shows a shorter version of that error) - this is the only error: _2020-11-13T16:17:27.039Z { [Error: 1 errors] list: [ [Error: E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data] ] } 2020-11-13T16:17:27.040Z [Error: E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data] 2020-11-13T16:17:27.041Z Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected character at line 1 column 1 of the JSON data_ Where is this JSON file located (firefox browser, one of my bookmarks http address, nexcloud server?) What is the unexpected character? I do see that some boomarks where synced, because bookmarks folder on nextcloud server shows these. Log file shows that all bookmarks have been processed and assigned an ID starting with "-#" and also ending with "parentId" I also tried setting up account as "Nextcloud Bookmarks **(legacy)**" and when I select radio button and click on "Add Account" nothing happens! I cannot proceed at all. Why? (my firefox is on auto-update, so whatever the latest firefox version is, that version is on my desktop). All of above problems started happening I believe in Feb/March this year when completely redesigned version of Floccus was released. BTW, when I set up floccus on Brave browser I get error Nextcloud API error: {"status":"error","data":"Could not find folder"} Trying to insert an already existing item into OrderTracker: bookmark:1937 E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0
Author
Owner

@tchap2 commented on GitHub (Nov 13, 2020):

I am not sure if this is directly helpful but I am going to post in case it's useful to someone else who is a bit dense like me and searches for it.

Also got e020 on new install. Content of the logs was basically

Starting sync process for account nextcloud@host.com
Using normal strategy
Fetching bookmarks
Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server?
JSON.parse: unexpected character at line 1 column 1 of the JSON data

The solution:

In the field labeled nextcloud URL you put the URL of the nextcloud, not the webDAV URL

https://nextcloud.host.com/ not https://nextcloud.host.com/remote.php/dav/files/user/

floccus is clever enough to figure out the rest.

This is exactly what was done. This does not change the issue nor this ticket.

<!-- gh-comment-id:726881294 --> @tchap2 commented on GitHub (Nov 13, 2020): > I am not sure if this is directly helpful but I am going to post in case it's useful to someone else who is a bit dense like me and searches for it. > > Also got e020 on new install. Content of the logs was basically > > ``` > Starting sync process for account nextcloud@host.com > Using normal strategy > Fetching bookmarks > Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server? > JSON.parse: unexpected character at line 1 column 1 of the JSON data > ``` > > The solution: > > In the field labeled `nextcloud URL` you put the URL of the nextcloud, _not_ the webDAV URL > > `https://nextcloud.host.com/` not `https://nextcloud.host.com/remote.php/dav/files/user/` > > floccus is clever enough to figure out the rest. This is exactly what was done. This does not change the issue nor this ticket.
Author
Owner

@marcohald commented on GitHub (Nov 23, 2020):

I also have this issue with Nextcloud 20.0.2 , Bookmarks 4.0.5 and floccus 4.4.6

2020-11-23T09:25:12.003Z Syncing failed with E020: Antwort des Servers konnte nicht gelesen werden. Ist die Bookmarks App auf Ihrem Server installiert?
JSON.parse: unexpected character at line 1 column 1 of the JSON data

I tried this https://github.com/marcelklehr/floccus/issues/666#issuecomment-704172666

  • Deduplicate shared bookmark folders
    • Removed 0 duplicate shares
  • Remove superfluous shared bookmark folders
    • Removed 0 superfluous shares
  • Remove orphaned bookmark shares
    • Removed 0 orphaned shares
    • Removed 0 orphaned public links
  • Remove orphaned bookmark tree items
    • Removed 228 orphaned bookmarks entries
    • Removed 0 orphaned folders entries
    • Removed 42 orphaned children entries
    • Removed 0 orphaned bookmark folders
    • Removed 0 orphaned bookmarks
  • Update bookmark group shares
    • Removed 0 users and added 0 users to 0 groups
    • Removed 0 shares

But still receive this error.

<!-- gh-comment-id:732039678 --> @marcohald commented on GitHub (Nov 23, 2020): I also have this issue with Nextcloud 20.0.2 , Bookmarks 4.0.5 and floccus 4.4.6 > 2020-11-23T09:25:12.003Z Syncing failed with E020: Antwort des Servers konnte nicht gelesen werden. Ist die Bookmarks App auf Ihrem Server installiert? > JSON.parse: unexpected character at line 1 column 1 of the JSON data I tried this https://github.com/marcelklehr/floccus/issues/666#issuecomment-704172666 > - Deduplicate shared bookmark folders > - Removed 0 duplicate shares > - Remove superfluous shared bookmark folders > - Removed 0 superfluous shares > - Remove orphaned bookmark shares > - Removed 0 orphaned shares > - Removed 0 orphaned public links > - Remove orphaned bookmark tree items > - Removed 228 orphaned bookmarks entries > - Removed 0 orphaned folders entries > - Removed 42 orphaned children entries > - Removed 0 orphaned bookmark folders > - Removed 0 orphaned bookmarks > - Update bookmark group shares > - Removed 0 users and added 0 users to 0 groups > - Removed 0 shares But still receive this error.
Author
Owner

@marcohald commented on GitHub (Nov 23, 2020):

I debugged it via about:debugging and saw that a bad response from our Reverse Proxy was cached fro the URL index.php/apps/bookmarks/public/rest/v2/folder?root=-1&layers=0
I right clicked my Nextcloud Site on the Firefox history and deleted it via forget this site.
Now it works again.

<!-- gh-comment-id:732054240 --> @marcohald commented on GitHub (Nov 23, 2020): I debugged it via about:debugging and saw that a bad response from our Reverse Proxy was cached fro the URL index.php/apps/bookmarks/public/rest/v2/folder?root=-1&layers=0 I right clicked my Nextcloud Site on the Firefox history and deleted it via forget this site. Now it works again.
Author
Owner

@fredbcode commented on GitHub (Nov 27, 2020):

No reverse here and floccus is unfortunately unusable in my case
Do you have directories in your bookmarks ? Maybe ( https://github.com/marcelklehr/floccus/issues/641#issuecomment-725541654 ) is a glue about this issue ?

<!-- gh-comment-id:734740620 --> @fredbcode commented on GitHub (Nov 27, 2020): No reverse here and floccus is unfortunately unusable in my case Do you have directories in your bookmarks ? Maybe ( https://github.com/marcelklehr/floccus/issues/641#issuecomment-725541654 ) is a glue about this issue ?
Author
Owner

@pcwilcox commented on GitHub (Dec 7, 2020):

I was having this issue as well, following @marcohald 's comment I deleted the site from my firefox history, then removed the account from floccus, then recreated it. When I first recreated it I used the 'nextcloud flow' method, and this didn't work. I went into my nextcloud settings and created a new app password for floccus, put this password into the account settings in floccus, and now it's syncing.

<!-- gh-comment-id:740145561 --> @pcwilcox commented on GitHub (Dec 7, 2020): I was having this issue as well, following @marcohald 's comment I deleted the site from my firefox history, then removed the account from floccus, then recreated it. When I first recreated it I used the 'nextcloud flow' method, and this didn't work. I went into my nextcloud settings and created a new app password for floccus, put this password into the account settings in floccus, and now it's syncing.
Author
Owner

@marcelklehr commented on GitHub (Jan 5, 2021):

I'm sorry for the delay. I've just released v4.4.7 for firefox with a lot of new fixes, hopefully this will some of your issues. A few issues remain, but I'm confident I'll be able to tackle those soon. Feedback is appreciated.

<!-- gh-comment-id:754732878 --> @marcelklehr commented on GitHub (Jan 5, 2021): I'm sorry for the delay. I've just released v4.4.7 for firefox with a lot of new fixes, hopefully this will some of your issues. A few issues remain, but I'm confident I'll be able to tackle those soon. Feedback is appreciated.
Author
Owner

@KaratekHD commented on GitHub (Jan 16, 2021):

Same happens here:
Nextcloud Bookmarks Version: 4.0.5

I get this output in my Nextcloud log:

Exception: Argument 1 passed to OCA\Bookmarks\Db\TreeMapper::getSubFolders() must be of the type int, null given, called in /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php on line 444

    /srv/www/htdocs/nextcloud/lib/private/AppFramework/App.php - line 152:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmark ... {}, "getFolders")

    /srv/www/htdocs/nextcloud/lib/private/Route/Router.php - line 308:

    OC\AppFramework\App::main("OCA\\Bookma ... r", "getFolders", OC\AppFramew ... {}, { action: nu ... "})

    /srv/www/htdocs/nextcloud/lib/base.php - line 1008:

    OC\Route\Router->match("/apps/bookm ... r")

    /srv/www/htdocs/nextcloud/index.php - line 37:

    OC::handleRequest()

Verursacht durchTypeError: Argument 1 passed to OCA\Bookmarks\Db\TreeMapper::getSubFolders() must be of the type int, null given, called in /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php on line 444

    /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php - line 444:

    OCA\Bookmarks\Db\TreeMapper->getSubFolders(null, -1)

    /srv/www/htdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:

    OCA\Bookmarks\Controller\FoldersController->getFolders(-1, -1)

    /srv/www/htdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

    OC\AppFramework\Http\Dispatcher->executeController(OCA\Bookmark ... {}, "getFolders")

    /srv/www/htdocs/nextcloud/lib/private/AppFramework/App.php - line 152:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmark ... {}, "getFolders")

    /srv/www/htdocs/nextcloud/lib/private/Route/Router.php - line 308:

    OC\AppFramework\App::main("OCA\\Bookma ... r", "getFolders", OC\AppFramew ... {}, { action: nu ... "})

    /srv/www/htdocs/nextcloud/lib/base.php - line 1008:

    OC\Route\Router->match("/apps/bookm ... r")

    /srv/www/htdocs/nextcloud/index.php - line 37:

    OC::handleRequest()

I hope this helps resolving this issue.

<!-- gh-comment-id:761537528 --> @KaratekHD commented on GitHub (Jan 16, 2021): Same happens here: Nextcloud Bookmarks Version: 4.0.5 I get this output in my Nextcloud log: ``` Exception: Argument 1 passed to OCA\Bookmarks\Db\TreeMapper::getSubFolders() must be of the type int, null given, called in /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php on line 444 /srv/www/htdocs/nextcloud/lib/private/AppFramework/App.php - line 152: OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmark ... {}, "getFolders") /srv/www/htdocs/nextcloud/lib/private/Route/Router.php - line 308: OC\AppFramework\App::main("OCA\\Bookma ... r", "getFolders", OC\AppFramew ... {}, { action: nu ... "}) /srv/www/htdocs/nextcloud/lib/base.php - line 1008: OC\Route\Router->match("/apps/bookm ... r") /srv/www/htdocs/nextcloud/index.php - line 37: OC::handleRequest() Verursacht durchTypeError: Argument 1 passed to OCA\Bookmarks\Db\TreeMapper::getSubFolders() must be of the type int, null given, called in /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php on line 444 /srv/www/htdocs/nextcloud/apps/bookmarks/lib/Controller/FoldersController.php - line 444: OCA\Bookmarks\Db\TreeMapper->getSubFolders(null, -1) /srv/www/htdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169: OCA\Bookmarks\Controller\FoldersController->getFolders(-1, -1) /srv/www/htdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100: OC\AppFramework\Http\Dispatcher->executeController(OCA\Bookmark ... {}, "getFolders") /srv/www/htdocs/nextcloud/lib/private/AppFramework/App.php - line 152: OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmark ... {}, "getFolders") /srv/www/htdocs/nextcloud/lib/private/Route/Router.php - line 308: OC\AppFramework\App::main("OCA\\Bookma ... r", "getFolders", OC\AppFramew ... {}, { action: nu ... "}) /srv/www/htdocs/nextcloud/lib/base.php - line 1008: OC\Route\Router->match("/apps/bookm ... r") /srv/www/htdocs/nextcloud/index.php - line 37: OC::handleRequest() ``` I hope this helps resolving this issue.
Author
Owner

@wu-lee commented on GitHub (Jan 16, 2021):

I'm seeing this error:

E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

On the server logs, I see:

  Error    PHP                Allowed memory size of 2021-01-16T15:35:58+00:00 
                              536870912 bytes                                  
                              exhausted (tried to                              
                              allocate 268435464                               
                              bytes) at                                        
                              /var/www/html/apps/bookmarks/lib/Db/BookmarkWithTagsAndParent.php#48  

I could try and increase the PHP limit, but I wonder if this is sensible: does syncing bookmarks really need 500MB?

Versions:

  • Nextcloud 18.0.13
  • Bookmarks App 3.4.9
  • Floccus 4.4.7
  • Firefox 84.0.2
<!-- gh-comment-id:761584136 --> @wu-lee commented on GitHub (Jan 16, 2021): I'm seeing this error: E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected end of data at line 1 column 1 of the JSON data On the server logs, I see: ``` Error PHP Allowed memory size of 2021-01-16T15:35:58+00:00 536870912 bytes exhausted (tried to allocate 268435464 bytes) at /var/www/html/apps/bookmarks/lib/Db/BookmarkWithTagsAndParent.php#48 ``` I could try and increase the PHP limit, but I wonder if this is sensible: does syncing bookmarks really need 500MB? Versions: - Nextcloud 18.0.13 - Bookmarks App 3.4.9 - Floccus 4.4.7 - Firefox 84.0.2
Author
Owner

@marcelklehr commented on GitHub (Jan 16, 2021):

@KaratekHD You likely have two root folders for that user in the database. The fix would be to remove the one that doesn't contain any other folders.

Short guide for that:

The table oc_bookmarks_root_folders maps a user_id to a folder_id. In oc_bookmarks_tree you can find entries that have that folder_id as their parent_folder to see what is in that root folder. You can drop the entry in oc_bookmarks_root_folders that has no children in oc_bookmarks_tree.

<!-- gh-comment-id:761586069 --> @marcelklehr commented on GitHub (Jan 16, 2021): @KaratekHD You likely have two root folders for that user in the database. The fix would be to remove the one that doesn't contain any other folders. Short guide for that: The table `oc_bookmarks_root_folders` maps a user_id to a folder_id. In `oc_bookmarks_tree` you can find entries that have that folder_id as their parent_folder to see what is in that root folder. You can drop the entry in oc_bookmarks_root_folders that has no children in oc_bookmarks_tree.
Author
Owner

@marcelklehr commented on GitHub (Jan 16, 2021):

@wu-lee Oof, I have not analyzed the memory footprint of the app so far, but that looks like a bit too much indeed. I'll create a new issue on the bookmarks app to track this, but for now the quick fix would indeed be to increase the memory limit maybe by a hundred or two hundred mb. :S

<!-- gh-comment-id:761587471 --> @marcelklehr commented on GitHub (Jan 16, 2021): @wu-lee Oof, I have not analyzed the memory footprint of the app so far, but that looks like a bit too much indeed. I'll create a new issue on the bookmarks app to track this, but for now the quick fix would indeed be to increase the memory limit maybe by a hundred or two hundred mb. :S
Author
Owner

@KaratekHD commented on GitHub (Jan 19, 2021):

@KaratekHD You likely have two root folders for that user in the database. The fix would be to remove the one that doesn't contain any other folders.

Short guide for that:

The table oc_bookmarks_root_folders maps a user_id to a folder_id. In oc_bookmarks_tree you can find entries that have that folder_id as their parent_folder to see what is in that root folder. You can drop the entry in oc_bookmarks_root_folders that has no children in oc_bookmarks_tree.

Thank you, this worked!

<!-- gh-comment-id:763148536 --> @KaratekHD commented on GitHub (Jan 19, 2021): > @KaratekHD You likely have two root folders for that user in the database. The fix would be to remove the one that doesn't contain any other folders. > > Short guide for that: > > The table `oc_bookmarks_root_folders` maps a user_id to a folder_id. In `oc_bookmarks_tree` you can find entries that have that folder_id as their parent_folder to see what is in that root folder. You can drop the entry in oc_bookmarks_root_folders that has no children in oc_bookmarks_tree. Thank you, this worked!
Author
Owner

@marcelklehr commented on GitHub (Jan 21, 2021):

I'm sorry for the delay. I've just released v4.4.7 for firefox with a lot of new fixes, hopefully this will some of your issues. A few issues remain, but I'm confident I'll be able to tackle those soon. Feedback is appreciated.

v4.4.8 is out now with more fixes. I'm closing this now, feel free to open a new issue if you continue to experience problems.

<!-- gh-comment-id:764523536 --> @marcelklehr commented on GitHub (Jan 21, 2021): > I'm sorry for the delay. I've just released v4.4.7 for firefox with a lot of new fixes, hopefully this will some of your issues. A few issues remain, but I'm confident I'll be able to tackle those soon. Feedback is appreciated. v4.4.8 is out now with more fixes. I'm closing this now, feel free to open a new issue if you continue to experience problems.
Author
Owner

@Ronkn commented on GitHub (Jul 1, 2021):

V4.6.4 Floccus
Brave Browser
Pop_os! 20.04 & 20.10
Nextcloud 20.0.8

I get the following error:
E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0

here is the last bit of my error log:

2021-07-01T18:30:43.504Z (nextcloud-folders)ORDERFOLDER { id: 931,
  order: 
   [ { type: 'bookmark', id: '3758;931' },
     { type: 'bookmark', id: '3759;931' },
     { type: 'bookmark', id: '3760;931' },
     { type: 'bookmark', id: '3761;931' },
     { type: 'bookmark', id: '3762;931' },
     { type: 'bookmark', id: '3763;931' },
     { type: 'bookmark', id: '3764;931' },
     { type: 'folder', id: 949 },
     { type: 'folder', id: 950 } ] }
2021-07-01T18:30:44.972Z { [Error: 1 errors] list: [ { [Error: 1 errors] list: [Object] } ] }
2021-07-01T18:30:44.973Z { [Error: 1 errors]
  list: 
   [ [Error: E020: Could not parse server response. Is the bookmarks app installed on your server?
     Unexpected token < in JSON at position 0] ] }
2021-07-01T18:30:44.973Z [Error: E020: Could not parse server response. Is the bookmarks app installed on your server?
Unexpected token < in JSON at position 0]
2021-07-01T18:30:44.974Z Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server?

I didn't include more because I don't know how to sanitize it of personal info and my bookmarks etc.

 

Attempted fixes

  • Delete all bookmarks from bookmark app via button in nextcloud web panel.
  • trigger sync from scratch
  • reinstallation of floccus app.

Also, my wife has the exact same setup (machine, distro, etc) only difference is that she is a different user on my nextcloud instance. I am the admin user on the server. She has ZERO issues syncing.

<!-- gh-comment-id:872481007 --> @Ronkn commented on GitHub (Jul 1, 2021): V4.6.4 Floccus Brave Browser Pop_os! 20.04 & 20.10 Nextcloud 20.0.8 I get the following error: `E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0` here is the last bit of my error log: ``` 2021-07-01T18:30:43.504Z (nextcloud-folders)ORDERFOLDER { id: 931, order: [ { type: 'bookmark', id: '3758;931' }, { type: 'bookmark', id: '3759;931' }, { type: 'bookmark', id: '3760;931' }, { type: 'bookmark', id: '3761;931' }, { type: 'bookmark', id: '3762;931' }, { type: 'bookmark', id: '3763;931' }, { type: 'bookmark', id: '3764;931' }, { type: 'folder', id: 949 }, { type: 'folder', id: 950 } ] } 2021-07-01T18:30:44.972Z { [Error: 1 errors] list: [ { [Error: 1 errors] list: [Object] } ] } 2021-07-01T18:30:44.973Z { [Error: 1 errors] list: [ [Error: E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0] ] } 2021-07-01T18:30:44.973Z [Error: E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0] 2021-07-01T18:30:44.974Z Syncing failed with E020: Could not parse server response. Is the bookmarks app installed on your server? ``` I didn't include more because I don't know how to sanitize it of personal info and my bookmarks etc. &nbsp; **Attempted fixes** * Delete all bookmarks from bookmark app via button in nextcloud web panel. * trigger sync from scratch * reinstallation of floccus app. Also, my wife has the exact same setup (machine, distro, etc) only difference is that she is a different user on my nextcloud instance. I am the admin user on the server. She has ZERO issues syncing.
Author
Owner

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

Hi @boggle247 Could you please open a new issue for this? Also, this may be caused by a server error, so try to go through your nextcloud log for related errors.

<!-- gh-comment-id:872858851 --> @marcelklehr commented on GitHub (Jul 2, 2021): Hi @boggle247 Could you please open a new issue for this? Also, this may be caused by a server error, so try to go through your nextcloud log for related errors.
Author
Owner

@Ronkn commented on GitHub (Jul 2, 2021):

@marcelklehr I'm in the matrix room for nextcloud bookmarks trying to resolve the issue. If I find that it is indeed something with floccus, then I'll create a new issue. Otherwise, I'll update this with the nextcloud issue, if that's acceptable.

<!-- gh-comment-id:872979195 --> @Ronkn commented on GitHub (Jul 2, 2021): @marcelklehr I'm in the matrix room for nextcloud bookmarks trying to resolve the issue. If I find that it is indeed something with floccus, then I'll create a new issue. Otherwise, I'll update this with the nextcloud issue, if that's acceptable.
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:1476937233 --> @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#424
No description provided.