mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-25 22:26:06 +03:00
[GH-ISSUE #593] Floccus "Debug Logs" button does nothing #410
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#410
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 @primesun on GitHub (Jul 6, 2020).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/593
Describe the bug
Clicking on the "Debug Logs" button does nothing. It does not show any debug logs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Debug logs are shown
Desktop (please complete the following information):
Server (please complete the following information):
Debug log
Debug log button does nothing!
@marcelklehr commented on GitHub (Jul 19, 2020):
Mh, that's weird. Maybe downloads are saved to the downloads folder for you automatically. Can you check that folder?
@primesun commented on GitHub (Jul 26, 2020):
Could not find any debug logs in the download folder.
@cracket commented on GitHub (Aug 28, 2020):
I have similar problem with floccus ver 4.3.0 running on FF 79 on Ubuntu Linux with WebDav account. After error with sync the UI shows status "Syncing" along with greyed out button "Cancel Sync". "Debug Logs" button is blue and changes mouse cursor, so I assume it is active, but does not cause any action.
Tried to enable about:debugging for floccus and read out console errors from "This Firefox" (sorry I'm not a js expert, so not sure if they are relevant) which I attach below:
I assume the button should work no matter if synchronization is in progress?
@primesun commented on GitHub (Aug 28, 2020):
@cracket is right. It looks like the floccus extension is using the default content security policy (since it doesn't appear to set one in manifest.json). The default CSP doesn't allow for
evalto be used, according to Mozilla. And that is what the error is complaining about, the line in options.js:buffer = eval('require(\'buffer\').Buffer')I don't know where options.js is in the repo... (is it created by webpack??)
Edit: Looks like this eval is coming from js-base64, and they fixed it here: https://github.com/dankogai/js-base64/issues/85. Perhaps floccus can be updated to use the newer version of that dependency.
Edit2: Further, I'm not sure if that error we see in the console is actually related to the Debug logs button not working.
@marcelklehr commented on GitHub (Aug 28, 2020):
@asabbagh thanks for the research!
@marcelklehr commented on GitHub (Sep 1, 2020):
This seems suspicious. Perhaps the database is corrupt for some reason. Could you try reinstalling floccus?
@primesun commented on GitHub (Sep 3, 2020):
I just tried uninstalling and reinstalling floccus.
Immediately after installing I clicked the Debug Logs button but nothing happened. I tried a sync, and it failed (server error 503). But now the Debug Logs button successfully downloaded a log file. A 2nd sync attempt, same failure and error, and the Debug Logs still works and gives a log file. 3rd attempt the sync succeeded, and the button still works too.
So yes it is possible that it was some sort of database corruption. It's not clear why the button did nothing the first time I clicked it before any syncs were completed, but perhaps that is intended behaviour.
Edit: Even though it is likely off topic, I should note that one of the syncs resulted in one of my bookmark folders and its contents being duplicated.
@sixtyfive commented on GitHub (Feb 19, 2021):
Hi @marcelklehr, trying to figure out the JSON parsing problem, I also noticed that the "Debug Logs" button does nothing. It's all good now since reinstalling Floccus solved that problem, but if something like it ever happens again, it would surely be helpful to see debug logs and be able to post them here.
@marcelklehr commented on GitHub (Feb 19, 2021):
@sixtyfive Oh, that's not good. Please open a new issue with your installation details, so I can reproduce.
@sixtyfive commented on GitHub (Feb 19, 2021):
too late ... shouldn't have tried the reinstallation idea so quickly. if it ever happens again i'll investigate more! sorry, marcel!
@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.