Using the NextCloud calendar with calcurse-caldav

I’m trying to use calcurse-caldav with NextCloud and am having trouble getting it to work. Following a sample config that works with an independent NextCloud instance, I get the following error:

$ calcurse-caldav --init=two-way
Connecting to box.example.com...
error: The server at box.example.com replied with HTTP status code 405 (Not
error: Allowed) while trying to access https://box.example.com/remote.php/d
error: av/calendars/user@example.com/calendar/.

Any suggestions as to what I might be doing wrong?