floccusaddon/floccus

Couldn't authenticate with the server

Closed this issue · 16 comments

Which version of floccus are you using?

5.0.9

Sync method

Nextcloud Bookmarks

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

Chrome (122.0.6261.95)

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

13.1.3

Which version of Nextcloud? (if relevant)

6 (27.1.5)

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

No response

Describe the Bug

In my Chrome Browser the error appears in the floccus extension: E018: Couldn't authenticate with the server. Synchronizing is not possible snce 2 weeks. The OS Chrome is using Windows 11 (22H2, Build 22621). In a Laptop using Win 10 (22H2 (Build 19045) and the same Chrome Browser version, everything works fine. In MS edge browser everything works, too)

Expected Behavior

Synchronizing the boomarks

To Reproduce

Two weeks ago, the same problem was present. Deinstalling the floccus extension and reinstalling helped for a short time.
As mentioned above, in an other PC using Win 10 and in MS Edge synchronizing the bookmarks worked fine.

Debug log provided

  • I have provided a debug log file

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 and have been 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!
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 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 💙

Addendum:
The problem is spreading. I am now getting this message from Edge: E033: Redirect detected. Please make sure the server supports the selected sync method and URL you entered is correct doesn't redirect to a different location. If the redirect is part of your setup, you can disable this check in the settings.. Edge also runs under Windows 11.

Is there anything in your Nextcloud or local machine setup that changed 2 weeks ago? An update of some sort, perhaps?

Thank You for Your response.
In Chrome synchronising is not successfull since thre weeks. In Edge the problem seemed to be present since three days, but the error message says 2 weeks
Until now this problem seems to be present only the Windows 11 machine. Two days ago Windows 11 crashed, but the backup could restore it. On the server nothing was changed. On the the Windows 11 machine (Fujitsu Esprimo) the usual updates were done.
Today I will get a Mac Mini device (I hope the Windows trouble will get to an end) and we will see (running the Edge browser on it).

Can you try debugging the network requests as follows?

How to debug network

Firefox

  • Go to about:debugging
  • go to "This firefox"
  • click on Inspect button next to floccus entry
  • go to the network tab in the inspector
  • trigger a sync by clicking on sync now for the account of your choice.
  • check the failing network requests

Chrome

  • Go to chrome://extensions
  • enable Developer mode
  • click on dist/html/background.html button in floccus' entry next to "Inspect views: "
  • go to the network tab in the inspector window
  • trigger a sync by clicking on sync now for the account of your choice
  • check the failing network requests

Thank you for your answer. I have not been able to take care of the problem for the last few days. I can only find the entry in Chrome at chrome://extensions:
Ansichten prüfen ServiceWorker
When I click on 'Service Worker', I see a list under 'Network'. I honestly don't know how to get to 'Sync Now'.
A screenshot:

Screenshot 2024-03-06 104715_floccus
.

image

"Sync now" is simply the blue sync button of your profile in the floccus UI

Can you make sure the bookmarks app is still installed on your server? It seems the API URL is being redirected away, which often happens when the app is not installed.

Thank You for the information.
The 'bookmark' app is still installed on the nextcloud server. And in other operating systems floccus is working, for example in Firefox running on Mac OS Sonoma, and in Chromium running on Linux Ubuntu. The problem seems to be Windows 11, I suppose.

I have updated the floccus addon in Chrome (running in Windows 11) to version 5.0.10 . But the problem persists. In Firefox everything (floccus version 5.0.10) is working as well in Windows 11 as in Mac OS Sonoma. In MS Edge running on Windows 11 floccus addon is working as well.

I read that You wait for more information. What further information do You need.?Thge screenshot shown above, is it not enough?

I read that You wait for more information. What further information do You need.?Thge screenshot shown above, is it not enough?

Forgive me, I sometimes forget to remove that tag in time.

The issue seems to be outside of floccus and the bookmarks app and even the browser since you seem to have no problems with all three of them in the same version on a different machine. Could it be some sort of WIFI network sign is required or something similar? Can you access your nextcloud normally from the Win11 computer? Something is redirecting your browser away from the bookmarks API endpoint. I'm not sure what it is.

Thank you very much for your comment. The problem only occurs with Chrome under Windows 11. I do not use WLAN on this PC, it is connected via a network cable. I can access the Nextcloud website here with Chrome without any problems.

Mmh, very strange. Can you investigate some more in chrome://extensions ? Eg. you should be able to click on the requests with statuses 401 and 307 and see the sent and received data as well as the sent and received headers. Make sure to anonymize sensitive data before posting here.

It's really strange. I have now removed the floccus addon from Chrome (Windows 11) and added it again. Then I exported the settings / profile from the floccus addon in Chromium (Kubuntu) and imported it into Chrome (Windows 11). And lo and behold, floccus works in Chrome (Windows 11), at least so far. Other addons that I have running in Chrome (Windows 11), such as SiteBar, Zotero, FoxitReader among others, have no problems (as far as I can tell). I will continue to report, hopefully only good things.

I now have floccus working with Firefox on Windows and Mac. No problem. After I uninstalled and reinstalled floccus in Chrome (version 123.0.6312.122) on Windows 11, floccus synchronises without any problems.