carddav not working
hydroxide is working well for me except I'm unable to make carddav queries. The server is listening on the default port (8080) and accepting HTTP connections, but whether I query it locally directly or go through Caddy reverse-proxy for HTTPS, I get an error.
Going to my reverse-proxied domain name from a browser shows:
carddav: not found
curl locally:
# curl --user $HYDROXIDE_USER:$HYDROXIDE_PASSWORD -sD - -o /dev/null http://localhost:8080/
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain; charset=utf-8
Www-Authenticate: Basic
X-Content-Type-Options: nosniff
Date: Tue, 03 Dec 2024 00:17:44 GMT
Content-Length: 19
# curl --user $HYDROXIDE_USER:$HYDROXIDE_PASSWORD -sD - -o /dev/null http://localhost:8080/.well-known/caldav
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain; charset=utf-8
Www-Authenticate: Basic
X-Content-Type-Options: nosniff
Date: Tue, 03 Dec 2024 00:17:49 GMT
Content-Length: 19
with debug enabled, I see this when trying to connect from Thunderbird:
2024/12/02 19:22:37 &struct { protonmail.resp; *protonmail.Event }{resp:protonmail.resp{Code:1000, RawAPIError:(*protonmail.RawAPIError)(nil)}, Event:(*protonmail.Event)(0xc00007e480)}
Probably not relevant to the issue, but this is currently running on an Ubuntu Oracular box.
Any tips?
It looks like the proton API changed or is not recognizing the backend api call
@pierew @ajkessel I have slapped together a working carddav version.
https://github.com/adamflagg/hydroxide/tree/carddav
- ed25519 support
- some path fixes for webdav
- track the primary account key. Eg: I had an RSA key created in 2020 and an ed25519 in 2023, this now is the one required for contact usage
Caveat, I did not test imap or smtp after getting carddav working, not sure what may be broken. I just wanted to get this out there for now before doing further cleanup or refinement. I was able to create, delete, and update contacts in both directions with vdirsyncer with this and a test local filesystem. I have not yet tested it directly against, eg: Google or Apple with vdirsyncer yet.