Connecting to carddav server fails on Windows

Cardbook for Thunderbird Forums Main Forum Connecting to carddav server fails on Windows

This topic contains 15 replies, has 2 voices, and was last updated by  CardBook 2 months, 2 weeks ago.

  • Author
    Posts
  • #1845

    Niels125
    Participant

    On Thunderbird with Cardbook on my macbook with OSX, I am able connect to my carddav server. The carddav server is an open source calendarserver by Apple that I run on a Debian server.  When I use the same URL on a Windows 7 desktop with Cardbook 28.0 and  Thunderbird 52.7.0 it fails to connect. Is this a known issue, or am I doing something wrong?

    • This topic was modified 3 months, 1 week ago by  Niels125.
  • #1847

    CardBook
    Keymaster

    set the debug mode and increase the log size in Cardbook preferences and then look at the Cardbook log…

  • #1848

    Niels125
    Participant

    Below is the log I obtain, I removed some sensitive information. The text is in Dutch, if it makes it easier, I can try to change it to English.

    Thank you for the fast reply.

     

    2018.04.05 15:49:03:264 : Validation module : Controleren zonder zoekopdracht op https://–url–/addressbooks/__uids__/–uid–/addressbook/
    2018.04.05 15:49:03:268 : Validation module : debug mode : method : (new String(“PROPFIND”))
    2018.04.05 15:49:03:268 : Validation module : debug mode : headers : (new String(“depth: \”1\”, content-type: \”application/xml; charset=utf-8\”, User-Agent: \”Thunderbird CardBook/28.0\”, Authorization: \”Basic \”*****\””))
    2018.04.05 15:49:03:268 : Validation module : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:resourcetype/><D:displayname/></D:prop></D:propfind>”))
    2018.04.05 15:49:03:268 : Validation module : debug mode : username : (new String(“–username–“))
    2018.04.05 15:49:03:268 : Validation module : debug mode : url : (new String(“https://–url–/addressbooks/__uids__/–uid–/addressbook/”))
    2018.04.05 15:49:03:326 : Validation module : debug mode : response text : (new String(“<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>”))
    2018.04.05 15:49:03:326 : Validation module : debug mode : response code : (new Number(401))
    2018.04.05 15:49:03:328 : Validation module : Synchronisatie mislukt (Stap : validateWithoutDiscovery, URL : https://–url–/addressbooks/__uids__/–uid–/addressbook/, Status : 401)
    2018.04.05 15:49:04:270 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
    2018.04.05 15:49:04:272 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
    2018.04.05 15:49:04:272 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
    2018.04.05 15:49:04:272 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:”–username–“})
    2018.04.05 15:49:04:294 : Validation module : Zoeken fase 1 opdracht op https://–url–/addressbooks/__uids__/–uid–/addressbook/.well-known/carddav
    2018.04.05 15:49:04:300 : Validation module : debug mode : method : (new String(“PROPFIND”))
    2018.04.05 15:49:04:302 : Validation module : debug mode : headers : (new String(“depth: \”0\”, content-type: \”application/xml; charset=utf-8\”, User-Agent: \”Thunderbird CardBook/28.0\”, Authorization: \”Basic \”*****\””))
    2018.04.05 15:49:04:302 : Validation module : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:current-user-principal/></D:prop></D:propfind>”))
    2018.04.05 15:49:04:302 : Validation module : debug mode : username : (new String(“–username–“))
    2018.04.05 15:49:04:302 : Validation module : debug mode : url : (new String(“https://–url–/addressbooks/__uids__/–uid–/addressbook/.well-known/carddav”))
    2018.04.05 15:49:04:320 : Validation module : debug mode : response text : (new String(“<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>”))
    2018.04.05 15:49:04:320 : Validation module : debug mode : response code : (new Number(401))
    2018.04.05 15:49:04:322 : Validation module : Synchronisatie mislukt (Stap : discoverPhase1, URL : https://–url–/addressbooks/__uids__/–uid–/addressbook/.well-known/carddav, Status : 401)
    2018.04.05 15:49:05:304 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
    2018.04.05 15:49:05:304 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
    2018.04.05 15:49:05:304 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
    2018.04.05 15:49:05:304 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:”–username–“})

  • #1849

    CardBook
    Keymaster

    response from your server : You are not authorized to access this resource.

    maybe a proxy ?

  • #1850

    Niels125
    Participant

    If I go to the url in my browser and enter my credentials I am able to login and see the contacts, so I don’t think that is the case. I am also able to connect to the caldav part of the same server on the Windows desktop.

  • #1852

    CardBook
    Keymaster

    and if you try just https://yoururl ?

  • #1853

    Niels125
    Participant

    That also works

  • #1854

    CardBook
    Keymaster

    so problem solved ?

  • #1856

    Niels125
    Participant

    I mean in my browser it works, in the client it does not. I really don’t understand what the problem could be since it works on my laptop and my phone.  I will also try to see if I can connect to my server on another Windows 7 desktop on a different network.

  • #1857

    CardBook
    Keymaster

    I meant : what happens if you try https://yoururl in CardBook ?

  • #1858

    Niels125
    Participant

    Then I get the following log, which is pretty much the same as before.

    2018.04.06 09:49:29:668 : Validation module : Controleren zonder zoekopdracht op https://–url–
    2018.04.06 09:49:29:670 : Validation module : debug mode : method : (new String(“PROPFIND”))
    2018.04.06 09:49:29:670 : Validation module : debug mode : headers : (new String(“depth: \”1\”, content-type: \”application/xml; charset=utf-8\”, User-Agent: \”Thunderbird CardBook/28.0\”, Authorization: \”Basic \”*****\””))
    2018.04.06 09:49:29:670 : Validation module : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:resourcetype/><D:displayname/></D:prop></D:propfind>”))
    2018.04.06 09:49:29:670 : Validation module : debug mode : username : (new String(“–user–“))
    2018.04.06 09:49:29:672 : Validation module : debug mode : url : (new String(“https://–url–“))
    2018.04.06 09:49:29:736 : Validation module : debug mode : response text : (new String(“<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>”))
    2018.04.06 09:49:29:736 : Validation module : debug mode : response code : (new Number(401))
    2018.04.06 09:49:29:738 : Validation module : Synchronisatie mislukt (Stap : validateWithoutDiscovery, URL : https://–url–, Status : 401)
    2018.04.06 09:49:30:672 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
    2018.04.06 09:49:30:672 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
    2018.04.06 09:49:30:672 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
    2018.04.06 09:49:30:672 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:”–user–“})
    2018.04.06 09:49:30:698 : Validation module : Zoeken fase 1 opdracht op https://–url–/.well-known/carddav
    2018.04.06 09:49:30:704 : Validation module : debug mode : method : (new String(“PROPFIND”))
    2018.04.06 09:49:30:704 : Validation module : debug mode : headers : (new String(“depth: \”0\”, content-type: \”application/xml; charset=utf-8\”, User-Agent: \”Thunderbird CardBook/28.0\”, Authorization: \”Basic \”*****\””))
    2018.04.06 09:49:30:706 : Validation module : debug mode : body : (new String(“<?xml version=\”1.0\” encoding=\”utf-8\”?><D:propfind xmlns:D=\”DAV:\”><D:prop><D:current-user-principal/></D:prop></D:propfind>”))
    2018.04.06 09:49:30:706 : Validation module : debug mode : username : (new String(“–user–“))
    2018.04.06 09:49:30:706 : Validation module : debug mode : url : (new String(“https://–url–/.well-known/carddav”))
    2018.04.06 09:49:30:724 : Validation module : debug mode : response text : (new String(“<html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p>You are not authorized to access this resource.</p></body></html>”))
    2018.04.06 09:49:30:726 : Validation module : debug mode : response code : (new Number(401))
    2018.04.06 09:49:30:726 : Validation module : Synchronisatie mislukt (Stap : discoverPhase1, URL : https://–url–/.well-known/carddav, Status : 401)
    2018.04.06 09:49:31:708 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryRequest : (new Number(1))
    2018.04.06 09:49:31:708 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryResponse : (new Number(1))
    2018.04.06 09:49:31:708 : Validation module : debug mode : cardbookRepository.cardbookServerDiscoveryError : (new Number(1))
    2018.04.06 09:49:31:708 : Validation module : debug mode : cardbookRepository.cardbookServerValidation : ({length:0, user:”–user–“})

  • #1859

    CardBook
    Keymaster

    surely the proxy you’re behind…

  • #1868

    Niels125
    Participant

    On my windows 7 desktop at home it also does not work so I doubt it is a proxy.

    When I go to https://url.com/.well-known I see the a Collection Listing page with 2 pages; caldav and carddav and below that a bunch of properties, but when I go to either of those two pages, the page does not load. Could that have something to do with it?

    • This reply was modified 3 months, 1 week ago by  Niels125.
  • #1879

    Niels125
    Participant

    So do you have an idea why I can connect to my server on my macbook but not on both my windows desktops?

  • #1881

    CardBook
    Keymaster

    When I go to https://url.com/.well-known I see the a Collection Listing page with 2 pages; caldav and carddav and below that a bunch of properties, but when I go to either of those two pages, the page does not load. Could that have something to do with it?

    –> probably yes

  • #1922

    CardBook
    Keymaster

    have you found ?

You must be logged in to reply to this topic.