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.

[Bug] [v3] JSON.parse: unexpected character at line 1 column 1 of the JSON data

See original GitHub issue

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:

  1. Install latest on firefox.
  2. Try syncing 200 bookmarks multiple layers of subfolders.
  3. 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:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
albert-geecommented, Aug 2, 2020

@Ornias1993 Did you get it sorted out?

As I didn’t get any support from you on this issue, I stopped using this extention completely.

Hi marcelklehr, I had the same issue. In order to fix it, try not using your Nextcloud password. Instead, create a new app password:

  1. In your Nextcloud account, please go to Settings -> Personal -> Security -> Devices & sessions
  2. Enter any “App name”, e.g. “Floccus on Ubuntu”
  3. Copy the password and use it in Floccus

Hopefully, it will help. Cheers.

1reaction
Ornias1993commented, Apr 14, 2020

@Ornias1993 Did you get it sorted out?

As I didn’t get any support from you on this issue, I stopped using this extention completely.

Read more comments on GitHub >

github_iconTop 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 >

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