mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-27 07:05:59 +03:00
[GH-ISSUE #641] 2 Errors E020: Could not parse server response. AND Trying to insert an already existing item into OrderTracker #424
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#424
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 @tchap2 on GitHub (Aug 24, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/641
Describe the bug
A clear and concise description of what the bug is.
When I sync Firefox toolbar with /xyz folder on server, I get error message:
"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 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 "
I DELETED account and folder from Nextcloud (to flush ALL changes from server), then added account again but this time as follows:
When I sync Firefox bookmarks (ROOT) with /xyz folder on server, I get error message: Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH
To Reproduce
Steps to reproduce the behavior:
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 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
To Reproduce - ACTION 2
Steps to reproduce the behavior:
Trying to insert an already existing item into OrderTracker: bookmark:1nEHKoutQMqH
Expected behavior
Completed sync without errors
Screenshots
If applicable, add screenshots to help explain your problem.
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
It is often useful to provide a debug log file along with the issue. You can obtain a debug log of the most recent sync runs by clicking 'Debug log' in the bottom right corner of the floccus panel in your browser.
Note: As your debug log usually contains large parts of your bookmark data, instead of attaching it publicly to the issue here, I recommend uploading it privately at the following URL https://klehranlage.net/index.php/s/7nn82NSBsfQKdsJ
Additional context
Add any other context about the problem here.
@marcelklehr commented on GitHub (Aug 24, 2020):
I'm not sure what happened on the first try, but the second try is probably an incarnation of #598 which will be fixed with the next release. I'll leave this open till then.
@marcelklehr commented on GitHub (Sep 1, 2020):
@tchap2 Do you still experience this issue?
@marcelklehr commented on GitHub (Sep 1, 2020):
(The first error could actually be due to nextcloud brute force protection kicking in)
@CouldBeThis commented on GitHub (Sep 9, 2020):
I am not sure if this is directly helpful but I am going to post in case it's useful to someone else who is a bit dense like me and searches for it.
Also got e020 on new install. Content of the logs was basically
The solution:
In the field labeled
nextcloud URLyou put the URL of the nextcloud, not the webDAV URLhttps://nextcloud.host.com/nothttps://nextcloud.host.com/remote.php/dav/files/user/floccus is clever enough to figure out the rest.
@marcelklehr commented on GitHub (Sep 18, 2020):
Thanks for all your feedback, folks! I'm currently working on a new iteration of the sync algorithm that should fix this: #651
@marcelklehr commented on GitHub (Oct 5, 2020):
I've since rewritten the sync algorithm to avoid this kind of problems. Head over to https://github.com/marcelklehr/floccus/issues/666 if you'd like to help test the new version.
@fredbcode commented on GitHub (Nov 11, 2020):
This bug still present on 4.4.6, tested with url (not webdav link) nextcloud 20.0.1, Firefox 82.0.2
E020: Impossible de lire la réponse du serveur. L'application de marque-pages est elle installée sur votre serveur? JSON.parse: unexpected character at line 1 column 1 of the JSON data@fredbcode commented on GitHub (Nov 11, 2020):
Right now I also note that sub directories are duplicated at each synchronization
@tchap2 commented on GitHub (Nov 13, 2020):
Hello, YES! The issue is still there.
After not using Floccus for ~6 months, I again downloaded the addon to Firefox, set up the account (to root folder), and I again received error (below is verbatim from debug logs, the addon shows a shorter version of that error) - this is the only error:
2020-11-13T16:17:27.039Z { [Error: 1 errors]
list:
[ [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-11-13T16:17:27.040Z [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-11-13T16:17:27.041Z 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
Where is this JSON file located (firefox browser, one of my bookmarks http address, nexcloud server?) What is the unexpected character?
I do see that some boomarks where synced, because bookmarks folder on nextcloud server shows these. Log file shows that all bookmarks have been processed and assigned an ID starting with "-#" and also ending with "parentId"
I also tried setting up account as "Nextcloud Bookmarks (legacy)" and when I select radio button and click on "Add Account" nothing happens! I cannot proceed at all. Why? (my firefox is on auto-update, so whatever the latest firefox version is, that version is on my desktop).
All of above problems started happening I believe in Feb/March this year when completely redesigned version of Floccus was released.
BTW, when I set up floccus on Brave browser I get error
Nextcloud API error: {"status":"error","data":"Could not find folder"} Trying to insert an already existing item into OrderTracker: bookmark:1937 E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0
@tchap2 commented on GitHub (Nov 13, 2020):
This is exactly what was done. This does not change the issue nor this ticket.
@marcohald commented on GitHub (Nov 23, 2020):
I also have this issue with Nextcloud 20.0.2 , Bookmarks 4.0.5 and floccus 4.4.6
I tried this https://github.com/marcelklehr/floccus/issues/666#issuecomment-704172666
But still receive this error.
@marcohald commented on GitHub (Nov 23, 2020):
I debugged it via about:debugging and saw that a bad response from our Reverse Proxy was cached fro the URL index.php/apps/bookmarks/public/rest/v2/folder?root=-1&layers=0
I right clicked my Nextcloud Site on the Firefox history and deleted it via forget this site.
Now it works again.
@fredbcode commented on GitHub (Nov 27, 2020):
No reverse here and floccus is unfortunately unusable in my case
Do you have directories in your bookmarks ? Maybe ( https://github.com/marcelklehr/floccus/issues/641#issuecomment-725541654 ) is a glue about this issue ?
@pcwilcox commented on GitHub (Dec 7, 2020):
I was having this issue as well, following @marcohald 's comment I deleted the site from my firefox history, then removed the account from floccus, then recreated it. When I first recreated it I used the 'nextcloud flow' method, and this didn't work. I went into my nextcloud settings and created a new app password for floccus, put this password into the account settings in floccus, and now it's syncing.
@marcelklehr commented on GitHub (Jan 5, 2021):
I'm sorry for the delay. I've just released v4.4.7 for firefox with a lot of new fixes, hopefully this will some of your issues. A few issues remain, but I'm confident I'll be able to tackle those soon. Feedback is appreciated.
@KaratekHD commented on GitHub (Jan 16, 2021):
Same happens here:
Nextcloud Bookmarks Version: 4.0.5
I get this output in my Nextcloud log:
I hope this helps resolving this issue.
@wu-lee commented on GitHub (Jan 16, 2021):
I'm seeing this error:
E020: Could not parse server response. Is the bookmarks app installed on your server? JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
On the server logs, I see:
I could try and increase the PHP limit, but I wonder if this is sensible: does syncing bookmarks really need 500MB?
Versions:
@marcelklehr commented on GitHub (Jan 16, 2021):
@KaratekHD You likely have two root folders for that user in the database. The fix would be to remove the one that doesn't contain any other folders.
Short guide for that:
The table
oc_bookmarks_root_foldersmaps a user_id to a folder_id. Inoc_bookmarks_treeyou can find entries that have that folder_id as their parent_folder to see what is in that root folder. You can drop the entry in oc_bookmarks_root_folders that has no children in oc_bookmarks_tree.@marcelklehr commented on GitHub (Jan 16, 2021):
@wu-lee Oof, I have not analyzed the memory footprint of the app so far, but that looks like a bit too much indeed. I'll create a new issue on the bookmarks app to track this, but for now the quick fix would indeed be to increase the memory limit maybe by a hundred or two hundred mb. :S
@KaratekHD commented on GitHub (Jan 19, 2021):
Thank you, this worked!
@marcelklehr commented on GitHub (Jan 21, 2021):
v4.4.8 is out now with more fixes. I'm closing this now, feel free to open a new issue if you continue to experience problems.
@Ronkn commented on GitHub (Jul 1, 2021):
V4.6.4 Floccus
Brave Browser
Pop_os! 20.04 & 20.10
Nextcloud 20.0.8
I get the following error:
E020: Could not parse server response. Is the bookmarks app installed on your server? Unexpected token < in JSON at position 0here is the last bit of my error log:
I didn't include more because I don't know how to sanitize it of personal info and my bookmarks etc.
Attempted fixes
Also, my wife has the exact same setup (machine, distro, etc) only difference is that she is a different user on my nextcloud instance. I am the admin user on the server. She has ZERO issues syncing.
@marcelklehr commented on GitHub (Jul 2, 2021):
Hi @boggle247 Could you please open a new issue for this? Also, this may be caused by a server error, so try to go through your nextcloud log for related errors.
@Ronkn commented on GitHub (Jul 2, 2021):
@marcelklehr I'm in the matrix room for nextcloud bookmarks trying to resolve the issue. If I find that it is indeed something with floccus, then I'll create a new issue. Otherwise, I'll update this with the nextcloud issue, if that's acceptable.
@github-actions[bot] commented on GitHub (Mar 20, 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.