mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-26 22:55:59 +03:00
[GH-ISSUE #443] [Bug] [v3] JSON.parse: unexpected character at line 1 column 1 of the JSON data #331
Labels
No labels
browser-specific
bug
correctness issues
enhancement
feature: Google Drive
feature: Linkwarden
feature: git
feature: nextcloud-bookmarks
feature: tabs
feature: webdav
help wanted
native-app
priority: high
priority: low
priority: medium
pull-request
question
question
stale
upstream
waiting for more information
wontfix
🙁 Not following issue template
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/floccus#331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Crow-Control on GitHub (Feb 2, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/443
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 dataTo Reproduce
Steps to reproduce the behavior:
Expected behavior
Should, you know, work and such.
Desktop (please complete the following information):
Server (please complete the following information):
Note: Please write down the actual version numbers instead of writing 'latest'.
Debug log
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".
@marcelklehr commented on GitHub (Feb 11, 2020):
Floccus doesn't support this version of nextcloud. In any case, it would be helpful to know the actual version of your bookmarks app install, as the latest available version varies across nextcloud versions.
@Crow-Control commented on GitHub (Feb 11, 2020):
is there any documentation what is and isn't supported?
@marcelklehr commented on GitHub (Feb 11, 2020):
The addon pages cite nextcloud bookmarks v0.11 or greater.
However, when using the nextcloud-folders sync methods, v1.x or greater is supported (this is not documented indeed).Any nextcloud versions that these app versions support is implicitly supported. Nextcloud 7.x is very old.Update: The add-account screen in the addon itself actually declares the dependencies:
@Crow-Control commented on GitHub (Feb 11, 2020):
Shoot, Thats a typo from my side: Its: 17.0.3
@marcelklehr commented on GitHub (Feb 12, 2020):
I see. It would be interesting to know, which endpoint is responsible for that non-json output, and what the actual response is. Do you think you can find out? (
about:debuggingand then inspect thte network tab of the addon)@funkmastergst commented on GitHub (Apr 10, 2020):
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.
@Crow-Control commented on GitHub (Apr 11, 2020):
@funkmastergst That wasn't the case with my issue sadly enough.
@marcelklehr commented on GitHub (Apr 11, 2020):
@Ornias1993 Did you get it sorted out?
@Schlecki commented on GitHub (Apr 12, 2020):
I'm having the same problem. I debugged the sync via about:debugging and noticed that I kept getting redirected to the login page, even though I was already logged in:
I don't know about the others, but in my case it seems to be a problem with the openid-connect plugin I'm using (https://github.com/pulsejet/nextcloud-oidc-login). Once I deactivated it, it worked.
@Crow-Control commented on GitHub (Apr 14, 2020):
As I didn't get any support from you on this issue, I stopped using this extention completely.
@marcelklehr commented on GitHub (Apr 14, 2020):
I see. I did offer a way to find out more about the problem. Unless you want to investigate further, I'll close this.
@albert-gee commented on GitHub (Aug 2, 2020):
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.
@JoergOswald commented on GitHub (Jan 1, 2021):
Hey @marcelklehr. I had the same issue and started to debug the problem. In netwerk view I found some errors which were related with the creation of new Bookmarks (PUT). Though not all bookmarks had problems I investigated the ones who had. My solution was the title length of the bookmarks. By shrinking it down (the bookmark itself) the sync worked.
Hope that can help you either by fixing the length or thowing a better error message.
@sixtyfive commented on GitHub (Feb 19, 2021):
Although this has been closed for almost a year, I'd like to comment that I keep getting the error message from the Issue's title every couple of seconds. I.e., Floccus tries to sync, fails, tries, fails, etc. For the sheer number of bookmarks (I've kept moving them along as old devices went and new devices came since around 1999) what @JoergOswald did isn't an option to me.
@marcelklehr commented on GitHub (Feb 19, 2021):
@sixtyfive You could still investigate what causes the error. Failed JSON parse may happen because of bookmarks not being installed on nextcloud, or a server-side error. Checking the nextcloud log for errors would yield more information. I encourage you to open a new issue for this, though.
@github-actions[bot] commented on GitHub (Mar 21, 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.