-
Notifications
You must be signed in to change notification settings - Fork 47
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
Error 401 on WebDav #172
Comments
There are no logs since the Keeweb app runs in the browser only. You need to open the web developer tools of your browser and check the JavaScript console for error messages. Also check the access log of your webserver for error messages. |
Just a note: HTTP 501 means "no implemented" and has nothing to do with authentication. Also see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501 |
Sorry, I meant error 401. Typo :) https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401 |
Hello, I have the same issue with following version : I can't see any error on the js console or in nextcloud log... only HTTP 401 response for the request HEAD send when I click on OK button. any idea ? thanks |
@cbarbaza which ok button do you mean? |
@cbarbaza Please also check the access log of your webserver (not the Nextcloud log, but the log which is written by Apache or NGINX) which hosts Nextcloud. There you should find the exact URL which Keeweb tried to access. |
Hello,
As a reminder, it's working with Keepass installed client (Windows 64) and Keepass2Android. |
Please also check the "network" tab in your browser web developer console. There you should also see a request token like this:
The requesttoken is, what grants access. This token is requested from Nextcloud in the Keeweb app page controller and given to Keeweb to open a file. Also see https://github.com/jhass/nextcloud-keeweb/blob/master/keeweb/controller/pagecontroller.php#L83-L102 Also disable any adblocker, script blockers etc. for your Nextcloud URL just to make sure these don't interfere with Keeweb. |
Here is what I'm getting, I don't seem to have any requesttoken as you stated.
|
Sorry for the delay - I have no idea why the requesttoken is missing in your case. But without a requesttoken the file can not be read. |
I have the same issue, with the desktop app works fine.
|
I'm sorry - I have no idea what is wrong here. For me Keeweb works fine with NC 20 and NC 21 hosted on a server with Apache 2.4 and PHP-FPM 7.4. Please check if it works without any adblocker, scriptblocker etc. active. |
Nextcloud 20 PHP 7.4.3 Apache/2.4.41 using SSL from certbot tried using restoring Firefox in Windows with no change |
Well - seems your Nextcloud does not generate access tokens for the app. But I don't know why. This does not happen here - neither on my production server nor on the development setup. |
I was getting the same error when trying to add a webdav file from KeeWeb on my NC instance. I ended up just clicking on the .kdbx file within my list of files and KeeWeb opened it up just fine. |
JFTR: This is the intended way to use Keeweb in Nextcloud. Using WebDAV by entering the Nextcloud URL and user/password is not supported. The option is just there because it can not easily be removed - WebDAV is required as a protocol to use Keeweb in Nextcloud. If the bug report is about to use Keeweb to open a file using WebDAV and not by clicking a file within the Nextcloud file list, then I'll close this issue as this can never be fixed. The correct fix for this would be to remove the wole UI which allows to open files in Keeweb itself - since this does not work anyway. |
Same problem over here. It's working via any client but this plugin. I think the plugin is using a wrong protocol. it requests http instead of https which causes a cors.
where can I tell the plugin the right protocol to force https? Thanks in advance |
I had the same problem, in the nextcloud docker I ran the following command |
For me, the solution was to use a device password (see Settings/Security) for webdav access. |
HTTP is not supported by Keeweb. Nextcloud must use HTTPS. |
Hello |
Same issue for me on firefox, librewolf and brave. |
HEAD https://nextcloud..../pat/file.kdbx 401 (Unauthorized) But in the Network Tab, I actually can see the kdbx file and download it. |
I have the same problem. As it was unmaintained I removed the plugin and installed it again. Thank you all for the new version btw :-) I can open the file just fine - click on the kdbx opens the app and it can load and save. But after some time (hours/few days) it looses the authentication and won't sync anymore. Any ideas what to set/do? |
Hello,
I haven't found any solutions browing the web/github so I'll take my chance here.
I was using Keeweb for Nextcloud (App) before and it has stopped working since latest updates (Nextcloud or Keeweb for Nextcloud, I don't know).
I'm getting error 401 (authentication) when I'm trying to access my webdav through the app but if I try to connect to the same webdav with same credentials directly from a mobile phone or another device/OS, it works.
It will also work with Keepass software installed on computer.
Where to find logs about this keeweb app ? Any idea on how to resolve this ?
The text was updated successfully, but these errors were encountered: