Not working against SOGo caldav server
See original GitHub issueI cannot get this to work against a test SOGo server that we setup (Caldav applications on android work against it):
var dav = require('dav');
dav.debug.enabled = true;
var xhr = new dav.transport.Basic(
new dav.Credentials({
username: 'sogo1',
password: 'xxxxxxx'
})
);
dav.createAccount({
server: 'https://sogo.mydomain.com/SOGo/dav/sogo1/', // This url is defined by SOGo to include the username (also tried without)
xhr: xhr })
.then(function(account) {
console.log(account);
// account instanceof dav.Account
account.calendars.forEach(function(calendar) {
console.log('Found calendar named ' + calendar.displayName);
// etc.
});
})
.catch(function(err){
console.log("ERROR", err);
});
tried with ‘iojs and nodejs (using bluebird for Promise)’
Error Message:
ERROR [TypeError: Cannot read property 'props' of undefined]
Debug Output:
[dav:accounts] Attempt service discovery.
[dav:xmlhttprequest] Sending request data: undefined
[dav:accounts] Discovery failed... failover to the provided url
[dav:accounts] Fetch principal url from context path https://sogo.mydomain.com/SOGo/dav/sogo1/.
[dav:xmlhttprequest] Sending request data: <d:propfind xmlns:c="urn:ietf:params:xml:ns:caldav"
xmlns:card="urn:ietf:params:xml:ns:carddav"
xmlns:cs="http://calendarserver.org/ns/"
xmlns:d="DAV:">
<d:prop>
<d:current-user-principal />
</d:prop>
</d:propfind>
[dav:parser] Unexpected node of type href encountered while parsing response node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type currentUserPrincipal encountered while parsing prop node!
[dav:parser] input:
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:"><D:response><D:href>/SOGo/dav/sogo1/</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:current-user-principal xmlns:D="DAV:"><D:href>/SOGo/dav/sogo1</D:href></D:current-user-principal></D:prop></D:propstat></D:response></D:multistatus>
output:
{"response":[{"propstat":[{"status":"HTTP/1.1 200 OK","prop":{"currentUserPrincipal":"/SOGo/dav/sogo1"}}],"href":"/SOGo/dav/sogo1/"}]}
[dav:accounts] Received principal: /SOGo/dav/sogo1
[dav:accounts] Fetch home url from principal url https://sogo.mydomain.com/SOGo/dav/sogo1.
[dav:xmlhttprequest] Sending request data: <d:propfind xmlns:c="urn:ietf:params:xml:ns:caldav"
xmlns:card="urn:ietf:params:xml:ns:carddav"
xmlns:cs="http://calendarserver.org/ns/"
xmlns:d="DAV:">
<d:prop>
<c:calendar-home-set />
</d:prop>
</d:propfind>
[dav:parser] Unexpected node of type href encountered while parsing response node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type calendarHomeSet encountered while parsing prop node!
[dav:parser] Unexpected node of type href encountered while parsing response node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type calendarHomeSet encountered while parsing prop node!
[dav:parser] Unexpected node of type href encountered while parsing response node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type calendarHomeSet encountered while parsing prop node!
[dav:parser] Unexpected node of type href encountered while parsing response node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type status encountered while parsing propstat node!
[dav:parser] Unexpected node of type calendarHomeSet encountered while parsing prop node!
[dav:parser] input:
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:a="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:"><D:response><D:href>/SOGo/dav/sogo1/freebusy.ifb</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop></D:prop></D:propstat><D:propstat><D:status>HTTP/1.1 404 Not Found</D:status><D:prop><a:calendar-home-set/></D:prop></D:propstat></D:response><D:response><D:href>/SOGo/dav/sogo1/Calendar</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop></D:prop></D:propstat><D:propstat><D:status>HTTP/1.1 404 Not Found</D:status><D:prop><a:calendar-home-set/></D:prop></D:propstat></D:response><D:response><D:href>/SOGo/dav/sogo1/Contacts</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop></D:prop></D:propstat><D:propstat><D:status>HTTP/1.1 404 Not Found</D:status><D:prop><a:calendar-home-set/></D:prop></D:propstat></D:response><D:response><D:href>/SOGo/dav/sogo1/Mail</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop></D:prop></D:propstat><D:propstat><D:status>HTTP/1.1 404 Not Found</D:status><D:prop><a:calendar-home-set/></D:prop></D:propstat></D:response></D:multistatus>
output:
{"response":[{"propstat":[{"status":"HTTP/1.1 200 OK","prop":{}},{"status":"HTTP/1.1 404 Not Found","prop":{"calendarHomeSet":""}}],"href":"/SOGo/dav/sogo1/freebusy.ifb"},{"propstat":[{"status":"HTTP/1.1 200 OK","prop":{}},{"status":"HTTP/1.1 404 Not Found","prop":{"calendarHomeSet":""}}],"href":"/SOGo/dav/sogo1/Calendar"},{"propstat":[{"status":"HTTP/1.1 200 OK","prop":{}},{"status":"HTTP/1.1 404 Not Found","prop":{"calendarHomeSet":""}}],"href":"/SOGo/dav/sogo1/Contacts"},{"propstat":[{"status":"HTTP/1.1 200 OK","prop":{}},{"status":"HTTP/1.1 404 Not Found","prop":{"calendarHomeSet":""}}],"href":"/SOGo/dav/sogo1/Mail"}]}
ERROR [TypeError: Cannot read property 'props' of undefined]
Dont know about the protocol yet to make sense of this … Any pointers or hints are appreciated.
Goal is to read calendar and add/edit appointments etc…
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
macOS Big Sur Reminders.app not connecting to SOGo ...
I've recently upgraded to from Mojave to Big Sur and I'm having trouble connecting to my gandi.net SOGo CalDAV account, with some weird...
Read more >Where to Find the calDAV Link in SOGo Webmail
Find the Link to the CalDAV Server. Find the Link to the CardDAV ... After logging into SOGo, click on the calendar icon...
Read more >Microsoft Outlook CalDAVSynchronizer Configuration Guide
First, you should change the profile name and configure the server settings, the DAV URL is prefilled with the default SOGo DAV path...
Read more >sogo caldav problem (Page 1) — iRedMail Support
IMAP usage on mail, and caldav using sogo. We get an error back from the calendar app with a dialogue window saying: The...
Read more >SOGO CalDav is not running - but Webtop CalDav - Support
Hello I have a problem syncing SOGO (Calendar) with CalDAV on our smartphones. ... https://buero.nandlnet.de/webtop-dav/server.php.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lipanski’s branch https://github.com/lipanski/dav/commit/4bddb8b478948556a14b3f80f73711f366ce92b8 appears to work with SOGo at first glance.
Any news on this?