Author Topic: carddav integration problem (but works in Thunderbird)  (Read 358 times)

Offline alexanderdd

  • Newbie
  • *
  • Posts: 4
carddav integration problem (but works in Thunderbird)
« on: May 14, 2020, 06:01:32 PM »
Hello,

I use Roundcube 1.4.0 and installed carddav plugin 3.0.3

I tried adding a carddav addressbook from Nextcloud. The combination of URL, username and password works in Thunderbird cardbook, but not in Roundcube. When I add it, it shows up in the settings under carddav, but when I click the contacts tab I get a blank screen. When composing a message I get the notification "server error".
This is the errors.log (I am not sure what is relevant about it. I censored the URL of the Nextcloud instance with "XXXXXXX.TLD")
Code: [Select]
[14-May-2020 23:17:51 Europe/Berlin] Empty reply from server
[14-May-2020 23:17:51 Europe/Berlin] PHP Fatal error:  Uncaught Httpful\Exception\ConnectionErrorException: Unable to connect to "https://cloud.XXXXXXXXXXXXXXXXXXXX.TLD:443/9j/4AAQSkZJRgABAQEASABIAAD/4RoARXhpZgAASUkqAAgAAAALAA4BAgAgAAAAkgAAAA8BAgAFAAAAsgAAABABAgAIAAAAuAAAABIBAwABAAAAAQAAABoBBQABAAAAwAAAABsBBQABAAAAyAAAACgBAwABAAAAAgAAADIBAgAUAAAA0AAAABMCAwABAAAAAgAAAGmHBAABAAAAAAEAAKXEBwAcAAAA5AAAAJoIAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgAFNPTlkAAERTQy1QMzIASAAAAAEAAABIAAAAAQAAADIwMTM6MDE6MjcgMTY6MTk6NDIAUHJpbnRJTQAwMjUwAAACAAIAAQAAAAEBAAAAABsAmoIFAAEAAABKAgAAnYIFAAEAAABSAgAAIogDAAEAAAACAAAAJ4gDAAEAAABkAAAAAJAHAAQAAAAwMjIwA5ACABQAAABaAgAABJACABQAAABuAgAAAZEHAAQAAAABAgMAApEFAAEAAACCAgAABJIKAAEAAACKAgAABZIFAAEAAACSAgAAB5IDAAEAAAAFAAAACJIDAAEAAAAAAAAACZIDAAEAAAAAAAAACpIFAAEAAACaAgAAfJIHANoFAACiAgAAAKAHAAQAAAAwMTAwAaADAAEAAAABAAAAAqAEAAEAAAAxAQAAA6AEAAEAAABwAQAABaAEAAEAAAB8CAAAAKMHAAEAAAADAAAAAaMHAAEAAAABAAAAAaQDAAEAAAAAAAAAAqQDAAEAAAAAAAAAA6QDAAEAAAAAAAAABqQDAAEAAAAAAAAAAAAAAAoAAADIAAAAHAAAAAoAAAAyMDEwOjEyOjE0IDE5OjE4OjMwADIwMTA6MTI6MTQgMTk6MTg6MzAABAAAAAEAAA in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php on line 1028
[14-May-2020 23:19:48 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 207
[14-May-2020 23:19:48 Europe/Berlin] PHP Warning:  usort() expects parameter 1 to be array, boolean given in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 220
[14-May-2020 23:19:48 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 224
[14-May-2020 23:19:48 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 252
[14-May-2020 23:19:48 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 253
[14-May-2020 23:20:01 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_backend.php on line 1380
[14-May-2020 23:20:01 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_backend.php on line 1380
[14-May-2020 23:20:01 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_backend.php on line 1380
[14-May-2020 23:20:01 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_backend.php on line 1398
[14-May-2020 23:20:01 Europe/Berlin] Empty reply from server
[14-May-2020 23:20:01 Europe/Berlin] PHP Fatal error:  Uncaught Httpful\Exception\ConnectionErrorException: Unable to connect to "https://cloud.XXXXXXXXXXXXXXXXXXXX.TLD:443/9j/4AAQSkZJRgABAQEASABIAAD/4RoARXhpZgAASUkqAAgAAAALAA4BAgAgAAAAkgAAAA8BAgAFAAAAsgAAABABAgAIAAAAuAAAABIBAwABAAAAAQAAABoBBQABAAAAwAAAABsBBQABAAAAyAAAACgBAwABAAAAAgAAADIBAgAUAAAA0AAAABMCAwABAAAAAgAAAGmHBAABAAAAAAEAAKXEBwAcAAAA5AAAAJoIAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgAFNPTlkAAERTQy1QMzIASAAAAAEAAABIAAAAAQAAADIwMTM6MDE6MjcgMTY6MTk6NDIAUHJpbnRJTQAwMjUwAAACAAIAAQAAAAEBAAAAABsAmoIFAAEAAABKAgAAnYIFAAEAAABSAgAAIogDAAEAAAACAAAAJ4gDAAEAAABkAAAAAJAHAAQAAAAwMjIwA5ACABQAAABaAgAABJACABQAAABuAgAAAZEHAAQAAAABAgMAApEFAAEAAACCAgAABJIKAAEAAACKAgAABZIFAAEAAACSAgAAB5IDAAEAAAAFAAAACJIDAAEAAAAAAAAACZIDAAEAAAAAAAAACpIFAAEAAACaAgAAfJIHANoFAACiAgAAAKAHAAQAAAAwMTAwAaADAAEAAAABAAAAAqAEAAEAAAAxAQAAA6AEAAEAAABwAQAABaAEAAEAAAB8CAAAAKMHAAEAAAADAAAAAaMHAAEAAAABAAAAAaQDAAEAAAAAAAAAAqQDAAEAAAAAAAAAA6QDAAEAAAAAAAAABqQDAAEAAAAAAAAAAAAAAAoAAADIAAAAHAAAAAoAAAAyMDEwOjEyOjE0IDE5OjE4OjMwADIwMTA6MTI6MTQgMTk6MTg6MzAABAAAAAEAAA in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php on line 1028
[14-May-2020 23:21:09 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 207
[14-May-2020 23:21:09 Europe/Berlin] PHP Warning:  usort() expects parameter 1 to be array, boolean given in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 220
[14-May-2020 23:21:09 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 224
[14-May-2020 23:21:09 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 252
[14-May-2020 23:21:09 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 253
[14-May-2020 23:21:16 Europe/Berlin] OpenSSL SSL_read: Connection reset by peer, errno 54
[14-May-2020 23:21:16 Europe/Berlin] PHP Fatal error:  Uncaught Httpful\Exception\ConnectionErrorException: Unable to connect to "https://cloud.XXXXXXXXXXXXXXXXXXXX.TLD:443/9j/4AAQSkZJRgABAQEASABIAAD/4RoARXhpZgAASUkqAAgAAAALAA4BAgAgAAAAkgAAAA8BAgAFAAAAsgAAABABAgAIAAAAuAAAABIBAwABAAAAAQAAABoBBQABAAAAwAAAABsBBQABAAAAyAAAACgBAwABAAAAAgAAADIBAgAUAAAA0AAAABMCAwABAAAAAgAAAGmHBAABAAAAAAEAAKXEBwAcAAAA5AAAAJoIAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgAFNPTlkAAERTQy1QMzIASAAAAAEAAABIAAAAAQAAADIwMTM6MDE6MjcgMTY6MTk6NDIAUHJpbnRJTQAwMjUwAAACAAIAAQAAAAEBAAAAABsAmoIFAAEAAABKAgAAnYIFAAEAAABSAgAAIogDAAEAAAACAAAAJ4gDAAEAAABkAAAAAJAHAAQAAAAwMjIwA5ACABQAAABaAgAABJACABQAAABuAgAAAZEHAAQAAAABAgMAApEFAAEAAACCAgAABJIKAAEAAACKAgAABZIFAAEAAACSAgAAB5IDAAEAAAAFAAAACJIDAAEAAAAAAAAACZIDAAEAAAAAAAAACpIFAAEAAACaAgAAfJIHANoFAACiAgAAAKAHAAQAAAAwMTAwAaADAAEAAAABAAAAAqAEAAEAAAAxAQAAA6AEAAEAAABwAQAABaAEAAEAAAB8CAAAAKMHAAEAAAADAAAAAaMHAAEAAAABAAAAAaQDAAEAAAAAAAAAAqQDAAEAAAAAAAAAA6QDAAEAAAAAAAAABqQDAAEAAAAAAAAAAAAAAAoAAADIAAAAHAAAAAoAAAAyMDEwOjEyOjE0IDE5OjE4OjMwADIwMTA6MTI6MTQgMTk6MTg6MzAABAAAAAEAAA in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php on line 1028
[14-May-2020 23:39:31 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 207
[14-May-2020 23:39:31 Europe/Berlin] PHP Warning:  usort() expects parameter 1 to be array, boolean given in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 220
[14-May-2020 23:39:31 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 224
[14-May-2020 23:39:31 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 252
[14-May-2020 23:39:31 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 253
[14-May-2020 23:39:31 Europe/Berlin]
[14-May-2020 23:39:31 Europe/Berlin] PHP Fatal error:  Uncaught Httpful\Exception\ConnectionErrorException: Unable to connect to "/carddav/41": 3  in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php:1028
Stack trace:
#0 /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php(204): Httpful\Request->buildResponse(false)
#1 /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_common.php(185): Httpful\Request->send()
#2 /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php(123): carddav_common->cdfopen('/carddav/41', Array, Array)
#3 /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php(93): carddav_discovery->retrieve_addressbooks('/carddav/41', Array)
#4 /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav.php(539): carddav_discovery->find_addressbooks(' https://dav.ma...', 'alexandermuelle...', '{BASE64}UGVuZ3B. in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/vendor/nategood/httpful/src/Httpful/Request.php on line 1028
[14-May-2020 23:40:49 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 207
[14-May-2020 23:40:49 Europe/Berlin] PHP Warning:  usort() expects parameter 1 to be array, boolean given in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 220
[14-May-2020 23:40:49 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 224
[14-May-2020 23:40:49 Europe/Berlin] PHP Warning:  dns_get_record(): DNS Query failed in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 252
[14-May-2020 23:40:49 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /data/web/1/000/045/001/171330/htdocs/email-roundcube/plugins/carddav/carddav_discovery.php on line 253

I also tried a different URL-username-password combination that works in Thunderbird cardbook, again, this did not work in Roundcube.

Also I tried syncing a carddav addressbook from mailbox.org which works great both in Roundcube and Thunderbird.

Any ideas? I would appreciate it!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,438
Re: carddav integration problem (but works in Thunderbird)
« Reply #1 on: May 17, 2020, 08:44:53 AM »
may be you have the same issue as here https://github.com/blind-coder/rcmcarddav/issues/220 ?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline alexanderdd

  • Newbie
  • *
  • Posts: 4
Re: carddav integration problem (but works in Thunderbird)
« Reply #2 on: May 18, 2020, 07:20:15 PM »
Hello,
I don't really understand the linked issue, it is long and complicated. Do you think I might have the same issue?

Is there anything I can do about it now to make it work?

Thanks.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,438
Re: carddav integration problem (but works in Thunderbird)
« Reply #3 on: May 19, 2020, 12:03:23 PM »
Did you try the applying the change that is in the PR at the bottom of the issue?

If that doesn't work then I suggest you open an issue in that repo and may be people can help you there.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline alexanderdd

  • Newbie
  • *
  • Posts: 4
Re: carddav integration problem (but works in Thunderbird)
« Reply #4 on: May 19, 2020, 05:50:02 PM »
You are saying I should try to change my carddav_discovery.php to the new version from here https://github.com/blind-coder/rcmcarddav/commit/1c4c3a5a4404595d4f44fc769f0ec98032574e05?diff=unified ?

Just checking. I am not that experienced.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,438
Re: carddav integration problem (but works in Thunderbird)
« Reply #5 on: May 20, 2020, 01:39:13 PM »
Yes. Give that change a try and see if it helps.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline alexanderdd

  • Newbie
  • *
  • Posts: 4
Re: carddav integration problem (but works in Thunderbird)
« Reply #6 on: May 24, 2020, 02:04:01 PM »
Just tried, does not help.
I changed carddav_discovery.php to the latest version in github. Then I added the carddav addressbook in the settings, it shows up in the settings, I log out and back in of Roundcube, click on contacts, a completely blank white screen is shown. Deleting the addressbook via settings fixes this.
Again, syncing the same addressbook in Thunderbird works, but not in Roundcube.
Syncing a different carddav adressbook from mailbox.org works like a charm in both Roundcube and Thunderbird.
I also tried to use an emailadress instead of a username, no difference.

Any other ideas?

Also, any ideas how I can find a freelancer, ideally from Germany, to help me get this running?