floccusaddon / floccus

:cloud: Sync your bookmarks privately across browsers and devices
https://floccus.org
Mozilla Public License 2.0
5.76k stars 242 forks source link

E017 network error #1547

Closed Nietzscheanman closed 8 months ago

Nietzscheanman commented 8 months ago

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.

Brave 1.62.165

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

13.1.3

Which version of Nextcloud? (if relevant)

28.0.2

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

No response

Describe the Bug

What went before: Have Floccus running on desktop without any issues (i.e. syncing to Nextcloud as expected). Desktop is using Floccus 4.19.1 (not sure how to update it to latest version, and reluctant anyway given the current issue). Nextcloud is hosted on local server on the LAN.

Current issue: Once I try to sync I get "E017: Network error: check your network connection and your account details", even though the network connection seems to be fully operational (Nextcloud is syncing + everything works from the browser with the same address and account details).

Expected Behavior

Same syncing behaviour as on the desktop.

To Reproduce

  1. Wanted to set up Floccus on laptop so it syncs with desktop bookmarks via Nextcloud.
  2. Note: laptop is also synching with Nextcloud without any issues for a long time already (both via LAN or via VPN when remote).
  3. Laptop is on same LAN. Alternatively, it can connect via VPN to the server to access the LAN (tried both while troubleshooting this issue, wireguard or not does not make a difference) and thus sync with Nextcloud, which works as intended.
  4. When installing Floccus using the exact same login as on the desktop etc. I get sent from the setup process of Floccus to the Nextcloud portal in my browser to grant access (which seems to confirm that the address is correct).
  5. Once I try to sync I get "E017: Network error: check your network connection and your account details", even though the network connection seems to be fully operational (Nextcloud is syncing + everything works from the browser with the same address and account details).

Debug log provided

github-actions[bot] commented 8 months ago

Hello :wave:

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 :blue_heart:

swirlypillow commented 8 months ago

bump. same thing here. nextcloud 28.0.2. floccus 5.0.9 brave 1.63.161. floccus gives E017 network error. other computer using floccus 4.19.1, on same LAN, syncs fine.

Nietzscheanman commented 8 months ago

Update: no longer syncing on desktop either (nothing changed to settings etc.).

Then tried updating the plugin on desktop to v5.0.9 but this did not solve anything.

I.e. Floccus is currently not working on desktop nor laptop (error E017), while Nextcloud itself ontinues to be working without any issues on both.

marcelklehr commented 8 months ago

Hi @Nietzscheanman I'm sorry for the troubles.

Can you try the following?

Firefox

Chrome / Chrome-based

Nietzscheanman commented 8 months ago

Hello,

Inspect views does not list the option you refer to

image

I think I did find what you were referring to however via "service worker": image

Note this is via LAN and everything else related to Nextcloud is working.

Floccus will not let me create an account with an http address.

If I create an account and then drop the "s" from https afterwards, I get a different error: image

marcelklehr commented 8 months ago

CERT_AUTHORITY_INVALID means your SSL/TLS setup is broken

Nietzscheanman commented 8 months ago

There is no SSL certificate, it just runs on the LAN so figured not worth the hassle (and it used to work before with Floccus)?

marcelklehr commented 8 months ago

Floccus will not let me create an account with an http address.

It warns you, but it should still work.

Can you check the response body of that 400 Error to see what it says?

Nietzscheanman commented 8 months ago

Hello,

No it will not let me create the account (it indeed shows the warning but then nothing happens when clicking "connect"). I can create an https one and then remove the s in the option menu, thus triggering the 400 error.

image

There is a 2nd one as well with request method "delete" instead of "post".

Thanks

marcelklehr commented 8 months ago

Can you show the Request body and response body tab?

Nietzscheanman commented 8 months ago

image

marcelklehr commented 8 months ago

I mean the Request body and response body of the network request :)

Nietzscheanman commented 8 months ago

Do you mean this?

image

marcelklehr commented 8 months ago

When examinig a network request in the Netowrk tab there is usually a sub tab line where you can see request and response bodies, you only sent a picture of the headers

Nietzscheanman commented 8 months ago

The only thing I can additionally find here is that it says "The plain HTTP request was sent to HTTPS port" (not an IT guy as you may have noticed :)

marcelklehr commented 8 months ago

The plain HTTP request was sent to HTTPS port

that's not good. If you don't use HTTPS you shouldn't use that HTTPS port

Nietzscheanman commented 8 months ago

OK, not sure what changed because it used to work before with the same port :/

Anyway, I think it probably means no more Floccus for me since I lack the technical knowhow to set up an http port for Nextcloud via docker. Tried looking around a bit already and will look into it a bit more but I don't want to mess up my Nextcloud somehow.

Thanks for the responses.