Nextcloud WebDAV 在 n8n 无法连接的问题与解决方法
·
Nextcloud WebDAV 在 n8n 无法连接的问题与解决方法
在通过 nginx 反向代理为 Nextcloud 启用 HTTPS 之后,Windows 系统可以正常挂载 WebDAV,Nextcloud APP 也能正常登录,但 n8n 的 WebDAV Credential 始终无法连接,并报错:
The resource you are requesting could not be found
即使路径、用户名大小写、证书、反向代理设置都确认无误,问题依旧存在。
实际原因是:n8n 不支持 Nextcloud 的新 WebDAV 路径结构。
Nextcloud 的新版 WebDAV 路径通常是:
https://<domain>/remote.php/dav/files/<用户名>/
该路径在 Windows、macOS、Nextcloud APP 中均可正常使用,但 n8n 无法识别 dav/files/<username>/ 这一命名空间结构,因此会报资源不存在。
正确解决方法:使用旧版 WebDAV 接口
将原本的:
https://<domain>/remote.php/dav/files/<用户名>/
替换为:
https://<domain>/remote.php/webdav/
在 n8n 中的示例配置
WebDAV URL:
https://<domain>/remote.php/webdav/
User:
<Nextcloud用户名>
Password:
你的 Nextcloud 密码
更多推荐



所有评论(0)