question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error E020 during sync

See original GitHub issue

Describe the bug

I am using floccus firefox addon to sync bookmarks to Nextcloud. Since some days I get following error:

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

To Reproduce Steps to reproduce the behavior:

  1. Go to floccus addon
  2. Click on ‘Jetzt synchronisieren’ (sync now)
  3. See error

Expected behavior Floccus should sync the bookmarks.

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

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser firefox
  • Browser Version 80.0.1 (64-Bit)
  • Floccus version: 4.3.0
  • Floccus sync method: nextcloud bookmarks

Server (please complete the following information):

  • OS: Ubuntu 18.04
  • Nextcloud version: 19.0.3
  • Bookmarks app version: 3.4.1

Debug log With each sync following appears in debug log:

2020-10-03T21:46:57.684Z Starting sync process for account fermat@nextcloud.drecksnetz.ddnss.de
2020-10-03T21:46:57.743Z Using normal strategy
2020-10-03T21:46:58.656Z Fetching bookmarks
2020-10-03T21:46:59.630Z 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
  • Debug log provided

floccus-4.3.0-2020-10-04.log

Additional context

I sync server folder /privat to bookmark folder Nextcloud (fermat@nextcloud.drecksnetz.ddnss.de).

In Nextcloud log I see following error:

[index] Error: Exception: Call to undefined function OCA\Bookmarks\Db\array_first() at <<closure>>

0. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 137
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmarks\Co ... {}, "getBookmarks")
1. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
   OC\AppFramework\App::main("OCA\\Bookmarks\ ... r", "getBookmarks", OC\AppFramework\ ... {}, {_route: "bookma ... "})
2. <<closure>>
   OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "bookma ... "})
3. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
   call_user_func(OC\AppFramework\ ... {}, {_route: "bookma ... "})
4. /var/www/html/nextcloud/lib/base.php line 1012
   OC\Route\Router->match("/apps/bookmarks/public/rest/v2/bookmark")
5. /var/www/html/nextcloud/index.php line 37
   OC::handleRequest()

GET /index.php/apps/bookmarks/public/rest/v2/bookmark?page=0&limit=300
from 192.168.135.54 by fermat at 2020-10-04T05:42:03+00:00

and

[index] Error: Exception: Call to undefined function OCA\Bookmarks\Db\array_first() at <<closure>>

0. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 137
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Bookmarks\Co ... {}, "hashFolder")
1. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
   OC\AppFramework\App::main("OCA\\Bookmarks\ ... r", "hashFolder", OC\AppFramework\ ... {}, {folderId: "-1", ... "})
2. <<closure>>
   OC\AppFramework\Routing\RouteActionHandler->__invoke({folderId: "-1", ... "})
3. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
   call_user_func(OC\AppFramework\ ... {}, {folderId: "-1", ... "})
4. /var/www/html/nextcloud/lib/base.php line 1012
   OC\Route\Router->match("/apps/bookmarks ... h")
5. /var/www/html/nextcloud/index.php line 37
   OC::handleRequest()

GET /index.php/apps/bookmarks/public/rest/v2/folder/-1/hash
from 192.168.135.54 by fermat at 2020-10-04T05:42:02+00:00

every minute, so every time floccus tries to sync.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
marcelklehrcommented, Apr 15, 2021

@gerroon Sorry for the late response, I somehow missed your comment. In this case the culprit is likely the emoji in the bookmark title. Make sure your nextcloud database uses utf8_mb4 encoding.

2reactions
gerrooncommented, Oct 17, 2020

Hi

I installed 3.4.3 unstable for NC 19 (manually replaced the bookmarks app) from the releases and I still seem to have this issue.

I am using Floccus 4.3.0 on Linux Firefox 81

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 


End of the debug log


2020-10-17T04:22:07.825Z (nextcloud-folders)CREATE     - #undefined[GitHub - daviddao/awful-ai: 😈Awful AI is a curated list to track current scary usages of AI - hoping to raise awareness](https://github.com/daviddao/awful-ai) parentId: 5
2020-10-17T04:22:10.859Z [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-10-17T04:22:10.863Z 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Error IR Advance Part 14 (Code : E020-0000, E020-0001)
Code : E020 -0000"Developing Assembly toner absent error " E020 -0001" Error in Developing Toner Sensor connection detection"1.
Read more >
How to solve error code E020-0004 and the reason ... - YouTube
Runner Advance 6055, 6065, 6075, 6255, 6265, 6275, 8085, 8095, 8105, 8205, 8505, 8585, 8595. Error code: E020 -0004Error in Magnet Roller ...
Read more >
Atr Error (E020-Xxxx) Display Due To Dirt On Atr Sensor Window
Canon imagePRESS C1 P Manual Online: Atr Error (E020-Xxxx) Display Due To Dirt On Atr ... waste toner may adhere on the ATR...
Read more >
Error E020 1073 printing black and 04B2 other colours. - Fixya
If I print a black only page I get error E020 04B2 and the paper stops travel on the horizontal path assembly. 2....
Read more >
Omron HEM-790IT Blood Pressure Monitor Troubleshooting ...
Problem. Possible Causes. Solutions. Ensure the USB cable is properly plugged into the computer and the device. Blood Pressure Monitor status in Connection ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found