floccus: [Bug] [v3] JSON.parse: unexpected character at line 1 column 1 of the JSON data
Describe the bug
When syncing using Nextcloud-Folders (non-legacy) it throws the following error:
JSON.parse: unexpected character at line 1 column 1 of the JSON data
To Reproduce Steps to reproduce the behavior:
- Install latest on firefox.
- Try syncing 200 bookmarks multiple layers of subfolders.
- Get error
Expected behavior Should, you know, work and such.
Desktop (please complete the following information):
- OS: Windows
- Browser Firefox
- Browser Version Latest, esr, dev etc
- Floccus version: v3 (latest)
- Floccus sync method: nextcloud folders
Server (please complete the following information):
- OS: FreeBSD
- Nextcloud version: 7.0.3
- Bookmarks app version: Latest
Note: Please write down the actual version numbers instead of writing ‘latest’.
Debug log
2020-02-02T20:00:38.464Z (nextcloud-folders)CREATE - #undefined[Shakira - Whenever, Wherever - YouTube](https://www.youtube.com/watch?v=weRHyjj34ZE) parentId: 55
2020-02-02T20:00:39.287Z COMPARE { localItem: - #PTfKYaTuNT9-[Over the Misty Mountains Cold | The Mary Sue](http://www.themarysue.com/song-from-the-hobbit-trailer/) parentId: kK5AaWRa_wGI,
cacheItem: undefined,
serverItem: undefined }
2020-02-02T20:00:39.288Z (nextcloud-folders)CREATE - #undefined[Over the Misty Mountains Cold | The Mary Sue](http://www.themarysue.com/song-from-the-hobbit-trailer/) parentId: 55
2020-02-02T20:00:40.344Z 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
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
- Debug log provided
Additional context Also happens on V4 (when not running it on root, see #444 ). Legacy sync works fine (as far as one could call that “fine”.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (6 by maintainers)
Hi marcelklehr, I had the same issue. In order to fix it, try not using your Nextcloud password. Instead, create a new app password:
Hopefully, it will help. Cheers.
As I didn’t get any support from you on this issue, I stopped using this extention completely.
The same error occured at my instance. I used this howto: https://decatec.de/home-server/nextcloud-lesezeichen-synchronisieren-mit-chrome-firefox/
The error occured because I used the wrong server-path mentioned in the howto. false: https://mydomain.de/nextcloud correct: https://mydomain.de
After correcting the path everything worked alright.