-
Notifications
You must be signed in to change notification settings - Fork 438
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
Support: How to debug WebDAV sync issues to Nextcloud instance #976
Comments
The background script has its own devtools console and network panel, please check those. I thought only web URLs like http/https/ftp are supported by |
Thanks @tophf for you feedback: Yes
|
I hoped you would see the network request in the network panel of devtools. Anyway, like I said browsers can't make requests to custom protocols at least according to the specification of P.S. You can write me an email, see my profile. |
TL;DR: It is working in vanilla configurations! Okay : I invested some time but did not achieve any significant results:
I'm also unaware where to put the breakpoint, because
So unless you can give me any further hint where to set a breakpoint I'm afraid that this functionality won't work for me and it's unreasonable that you waste any time on my issue. Thanks for your support! |
Looks like you're still looking at the console (and network panel) of the tab, not of the background script. |
Okay: Can you help me: I puzzled over 10 Minutes on you original script how to access the background script debugging. What I'm doing is:
What am I doing wrong? |
See my first comment, it links to the instruction. |
Maybe it's not obvious that you need to open |
I did not see it. Relooking now I found the culprit:
|
Ah... there it is!
|
@gera2ld is there something you can do about this? Does the error above look like something we can/should extract from the response and show in the UI? |
TL;DR The culprit are those extra cookies sent with the request: Obviously those are invalid and seem to override the basic authentification sent with the request Ok: At least now I better understand why it is working sometimes and why not. A typical requests looks like this. NOTE: It looks more or less exactly the same for the successful GET as well as for the failing PROPFIND:
This is all so FUBAR! My proposals:
|
Seems to be prevented by Nextcloud/Owncloud's protection against logout CSRF. |
What is the problem?
I can successfully connect to a webdav endpoint of a nextcloud instance with Nautilus, but fail to use it with violentmonkey.
How can I learn more about the error.
It displays
Syncing (1/2)
and the failed.How to reproduce it?
davs://SERVERNAME/remote.php/dav/files/USERNAME/
as targetWhat is the expected result?
Some syncing happening and files appearing on the webdav target
What is the actual result?
Only a
Failed
is displayed.F12 console in Firefox does not provide any output.
The text was updated successfully, but these errors were encountered: