Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r.includes is not a function #1812

Closed
1 task done
CodeShadower opened this issue Jan 4, 2025 · 35 comments
Closed
1 task done

r.includes is not a function #1812

CodeShadower opened this issue Jan 4, 2025 · 35 comments

Comments

@CodeShadower
Copy link

CodeShadower commented Jan 4, 2025

Which version of floccus are you using?

5.4.1

How many bookmarks do you have, roughly?

800

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

WebDAV

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Android 14

Which version of Nextcloud Bookmarks are you using? (if relevant)

n/a

Which version of Nextcloud? (if relevant)

n/a

What kind of WebDAV server are you using? (if relevant)

https://xxxxxx.connect.kdrive.infomaniak.com

Describe the Bug

Error message at the top of the window: "r.includes is not a function"
Screenshot_20250104-141609_floccus_bookmark_sync

Expected Behavior

My bookmarks should sync as they did before (last time is unknown).

To Reproduce

  1. Delete Floccus cache and data
  2. Uninstall and reinstall Floccus Github apk or F-Droid App (same result)
  3. Create new profile for kDrive WebDAV sync (importing previous profile gives the same result)

PS: I went back installing untill v 5.0.11, but still got the error. v5.0.10 doesn't start anymore on my phone.

Debug log provided

  • I have provided a debug log file
Copy link

github-actions bot commented Jan 4, 2025

Hello 👋

Thank you for taking the time to open this issue with floccus. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I'm Marcel and I created floccus a few years ago, maintaining it ever since. I currently work for Nextcloud
which leaves me with less time for side projects like this one than I used to have.
I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also have a look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
To continue the development and maintenance of this project in a sustainable way it is expected that you donate to the project when opening a ticket,
if you're not a donor already. You can find donation options at https://floccus.org/donate/. Thank you!

One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the Nextcloud forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself.

I look forward to working with you on this issue
Cheers 💙

@CodeShadower
Copy link
Author

Donation just made. 😉

@marcelklehr
Copy link
Member

Thank you! The error seems to stem from the encryption module. Could it be that you have set the wrong encryption password? (Ideally, there should be a better error message, of course, though)

@CodeShadower
Copy link
Author

I exported my profile from my laptop in which I use Floccus with Firefox, Brave and Vivaldi, so this should work, correct?

@marcelklehr
Copy link
Member

It could be that the file is corrupted somehow, then. Can you try deleting it and doing a push sync to create it again?

@CodeShadower
Copy link
Author

CodeShadower commented Jan 4, 2025

I did a push sync from my laptop in Brave and now when I import the profile in Floccus App Android I get the following new error:

Screenshot_20250104-163346_floccus_bookmark_sync

@github-project-automation github-project-automation bot moved this to Backlog in Floccus Jan 5, 2025
@marcelklehr marcelklehr moved this from Backlog to Triaging in Floccus Jan 5, 2025
@marcelklehr
Copy link
Member

Can you try with the latest release? It's still in beta on Google Play, though, so you'll have to join the beta program if you use Google play to install

@CodeShadower
Copy link
Author

CodeShadower commented Jan 13, 2025 via email

@CodeShadower
Copy link
Author

CodeShadower commented Jan 13, 2025 via email

@marcelklehr
Copy link
Member

Ah, I see, it doesn't allow more people to join. Can you try installing the APK from here? https://github.com/floccusaddon/floccus/releases/tag/v5.4.2

@CodeShadower
Copy link
Author

CodeShadower commented Jan 13, 2025 via email

@marcelklehr
Copy link
Member

Mmmh, this is strange. It seems that the app does not receive any data from the server, even though it works fine on the desktop for you 🤔

@CodeShadower
Copy link
Author

CodeShadower commented Jan 15, 2025 via email

@marcelklehr
Copy link
Member

Can you perhaps try to access the android logs of the app?

@CodeShadower
Copy link
Author

CodeShadower commented Jan 15, 2025 via email

@marcelklehr
Copy link
Member

You will need to install Android Studio on your computer, connect the phone to your computer, enable developer mode on your phone and then opening logcat in android studio to see the logs of your phone. If you are not a developer I think it's unlikely you will get this to work :S

@CodeShadower
Copy link
Author

CodeShadower commented Jan 15, 2025

Thank you Marcel, fortunately, I'm a computer science engineer. 😉 

Will the attached file help?

@marcelklehr
Copy link
Member

Awesome :)
That's exactly what I wanted, but it also doesn't contain more info, sadly.

Note that it does contain your passphrase in cleartext and password as base64, though :S

@CodeShadower
Copy link
Author

Damn, I was convinced that I obfuscated sensitive info...

@marcelklehr
Copy link
Member

Can you perhaps try using a different webdav server? Just to check?

@CodeShadower
Copy link
Author

CodeShadower commented Jan 16, 2025 via email

@marcelklehr
Copy link
Member

I suppose that the way to proceed would be to take both bookmark files back on my laptop and from there import the first one, switch the backup format from xbel to html and then compare the difference between both files.

I don't quite follow. What would switching the format achieve?

@CodeShadower
Copy link
Author

CodeShadower commented Jan 17, 2025 via email

@marcelklehr
Copy link
Member

XBEL is XML :)

@CodeShadower
Copy link
Author

CodeShadower commented Jan 19, 2025

Understood: I got caught, beacause I enabled encryption.

So, I finally disabled the encryption and there is no error message anymore.

From my perspective, the case can be closed, but there is definitely an issue with the encyptio module.

@marcelklehr
Copy link
Member

So, I finally disabled the encryption and there is no error message anymore.

Well, that's not a solution for me, the encryption needs to work

Can you send the encrypted file to me via email, perhaps?

@CodeShadower
Copy link
Author

CodeShadower commented Jan 19, 2025 via email

@marcelklehr
Copy link
Member

:) [email protected] is my email

@CodeShadower
Copy link
Author

CodeShadower commented Jan 19, 2025 via email

@marcelklehr
Copy link
Member

I don't need the cleartext version, though. Just the encrypted version.

@CodeShadower
Copy link
Author

Email with encrypted bookmarks file sent to your gmx address.

@marcelklehr
Copy link
Member

Mmh, even with the same file I don't get the same error.

So I made another test: creating a new folder and a new bookmarks file succeeded.

I wonder how this is different from deleting the original file and doing a push sync ... 🤔

@marcelklehr
Copy link
Member

I believe I did find the reason for why the error message is not a nice message, so in the future you should get a nice "file is corrupt" message, but the reason for the corruption is beyond me at the moment.

@marcelklehr
Copy link
Member

I encourage you to keep using the encryption, but I understand if you don't. I'm closing this for now.

@github-project-automation github-project-automation bot moved this from Triaging to Done in Floccus Jan 22, 2025
@CodeShadower
Copy link
Author

CodeShadower commented Jan 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants