[Bug] [v3] JSON.parse: unexpected character at line 1 column 1 of the JSON data
See original GitHub issueDescribe 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”.
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
JSON.parse: unexpected character at line 1 column 1 of the ...
In chrome it resulted in 'Uncaught SyntaxError: Unexpected end of input', but Firebug showed it as 'JSON.parse: unexpected end of data at line...
Read more >unexpected character at line 3 column 1 of the JSON data
A video to show on which pages it happens (including the detailed reproduce steps);; The organization name and the affected user account;; A...
Read more >SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
The JavaScript exceptions thrown by JSON.parse() occur when string failed to be ... JSON.parse: unexpected character // at line 1 column 14 of...
Read more >SyntaxError: JSON.parse unexpected character in JavaScript
The "SyntaxError: JSON.parse: unexpected character" error occurs when passing a value that is not a valid JSON string to the JSON.parse method, e.g....
Read more >[Bug] [v3] JSON.parse: unexpected character at line 1 column ...
Describe the bug When syncing using Nextcloud-Folders (non-legacy) it throws the following error: JSON.parse: unexpected character at line 1 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.