Butterfly icon indicating copy to clipboard operation
Butterfly copied to clipboard

[Bug]: WebDAV: Error while creating connection

Open JeromeSiljanUTA opened this issue 4 months ago • 5 comments

What happened?

When I open the App -> Settings -> Connections -> Add Connection and input the information for my WebDAV server, I get "Error while creating connection: Cannot connect".

What I was expecting was for the app to connect to the WebDAV directory supplied and start saving notes there/offering the WebDAV path as a path to save new notes in.

I've tried testing the WebDAV connection URL and login credentials with other clients with no issues. Also, the directory I'm pointing it to exists.

I've also tried clearing storage and cache of the app then doing this as the first thing to rule out any existing settings being the issue.

Not sure how to get the logs but I'm more than willing to try to help.

Version

Adonis Blue 2.3.3

Platform

Android

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

JeromeSiljanUTA avatar Aug 19 '25 21:08 JeromeSiljanUTA

Hmm, I can't reproduce it with nextcloud on my end. Did you really use the correct webdav url? For example, on nextcloud you need to add /remote.php/dav/files/{USER} to the url.

CodeDoctorDE avatar Aug 20 '25 05:08 CodeDoctorDE

TLDR: I'm using SFTPGo and I tested the WebDAV url with Orgzly Revived and Material Files it's working well.

This is my docker compose for SFTPGo if you want to replicate my WebDAV setup:

services:
    sftpgo:
        image: drakkan/sftpgo:latest
        container_name: some-sftpgo
        ports:
            - '8080:8080'
            - '2022:2022'
            - '2121:2121'
            - '10080:10080'
        # make these volumes with uid 1000
        volumes:
            - ../volumes/sftpgodata:/srv/sftpgo
            - ../volumes/sftpgohome:/var/lib/sftpgo   
        environment:
            - SFTPGO_HTTPD_BINDINGS_0_PORT=8080
            - SFTPGO_HTTPD_BINDINGS_0_ADDRESS=0.0.0.0
            - SFTPGO_DATA_PROVIDER_CREATE_DEFAULT_ADMIN=true
            - SFTPGO_WEBDAVD__BINDINGS__0__PORT=10080
            - SFTPGO_WEBDAVD__BINDINGS__0__ENABLE_HTTPS=false
            - SFTPGO_WEBDAVD__BINDINGS__0__CLIENT_AUTH_TYPE=0
            - SFTPGO_FTPD_BINDINGS_0_PORT=2121
            - SFTPGO_FTPD_BINDINGS_0_FORCE_PASSIVE_IP='127.0.0.1:8080'
        restart: unless-stopped

volumes:
    sftpgodata:
    sftpgohome:

I tested by adding this url to both Orgzly Revived and Material Files

This is the URL I used for Linwood Butterfly, Orgzly Revived, and Material Files: http://<ip>:10080/gtd

Please let me know if you need any additional information or if I should test with something else, thanks.

JeromeSiljanUTA avatar Aug 20 '25 14:08 JeromeSiljanUTA

I'm currently in my exam phase. Generally speaking, I just use the default http package on dart. I will come back to you if I have enough time to test this

CodeDoctorDE avatar Aug 21 '25 12:08 CodeDoctorDE

Good luck with exams! Thanks for your attention.

JeromeSiljanUTA avatar Aug 21 '25 14:08 JeromeSiljanUTA

I added some improvements for webdav in 2.4.2-rc.1 and above, can you try it out

CodeDoctorDE avatar Dec 03 '25 09:12 CodeDoctorDE