Error 400

26 views
Skip to first unread message

praetor

unread,
Nov 30, 2014, 5:06:44 PM11/30/14
to as...@googlegroups.com
Hi all!

I try to connect ASynk with my ownCloud Server. The Server works perfectly with Evolution clients. But with ASynk I get an error 400, though the credentials are correct (full output at the bottom).

I work with the newest version from git under debian jessie. I noticed in the logfile of the server, that the successful clients connect with GET or PROPFIND, but ASynk with OPTIONS.

Is there anything I can do?
praetor

$ sudo grep carddav /var/log/apache2/access.log

tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:03 +0100] "PROPFIND /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 207 24920 "-" "Evolution/3.12.7.1"
tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:04 +0100] "GET /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/3ACA834F-34C7F0A1-7192EEA8.vcf HTTP/1.1" 200 2619 "-" "Evolution/3.12.7.1"
tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:04 +0100] "GET /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/08CAF96C-0C05B879-39DAD8D2.vcf HTTP/1.1" 200 8623 "-" "Evolution/3.12.7.1"
tronje.org 87.171.158.64 - ragp [30/Nov/2014:18:31:49 +0100] "DELETE /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/3ACA834F-34C7F0A1-7192EEA8.vcf HTTP/1.1" 204 1174 "-" "Evolution/3.12.7.1"
tronje.org 87.171.158.64 - - [30/Nov/2014:19:34:29 +0100] "OPTIONS /owncloud/remote.php/carddav HTTP/1.1" 400 10840 "-" "-"
tronje.org 87.171.158.64 - - [30/Nov/2014:20:34:06 +0100] "OPTIONS /owncloud/remote.php/carddav/addressbooks/ragp/kontakte HTTP/1.1" 400 10840 "-" "-"
tronje.org 87.171.158.64 - - [30/Nov/2014:20:41:20 +0100] "OPTIONS /owncloud/remote.php/carddav/ HTTP/1.1" 400 10840 "-" "-"
tronje.org 87.171.158.64 - - [30/Nov/2014:22:21:54 +0100] "OPTIONS /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 400 10840 "-" "-"
tronje.org 87.171.158.64 - - [30/Nov/2014:22:24:51 +0100] "OPTIONS /owncloud/remote.php/carddav/addressbooks/ragp/ HTTP/1.1" 400 10840 "-" "-"
tronje.org 87.171.158.64 - - [30/Nov/2014:22:55:42 +0100] "OPTIONS /owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ HTTP/1.1" 400 10840 "-" "-"


$ ~/git/ASynK/asynk.py --op=sync --user-dir=~/.async.cd --name testbbcd --dry-run
Applying base config from file /home/ragp/git/ASynK/config/config_v7.json...
Applying base config from file /home/ragp/git/ASynK/config/config_v7.json...done
Applying user customizations from file /home/ragp/.async.cd/config.py...
Applying user customizations from file /home/ragp/.async.cd/config.py...done
[22:55:54.875     INFO] Debug logging to file: /home/ragp/.async.cd/logs/asynk_logs.2014-11-30.22-55-54.874514
[22:55:54.878     INFO] Parsing BBDB file /home/ragp/.emacs.d/bbdb...
[22:55:54.880     INFO] Parsing BBDB Store with encoding utf-8...
[22:55:54.964     INFO] Parsing BBDB Store with encoding utf-8...Success
[22:55:54.964     INFO] Successfully parsed 23 entries.
[22:55:55.045     INFO] Logging into CardDAV server: https://tronje.org/owncloud/remote.php/carddav/addressbooks/ragp/kontakte/ - user: ragp...
[22:55:55.652 CRITICAL] Could not open connection to Carddav Server (https://tronje.org). Error: Code: 400, Reason: Bad Request
Traceback (most recent call last):
  File "/home/ragp/git/ASynK/asynk.py", line 1125, in <module>
    main()
  File "/home/ragp/git/ASynK/asynk.py", line 80, in main
    asynk.dispatch()
  File "/home/ragp/git/ASynK/asynk.py", line 511, in dispatch
    res = getattr(self, self.get_op())()
  File "/home/ragp/git/ASynK/asynk.py", line 775, in op_sync
    pname = self._load_profile()
  File "/home/ragp/git/ASynK/asynk.py", line 1119, in _load_profile
    self._login()
  File "/home/ragp/git/ASynK/asynk.py", line 312, in _login
    self.set_db(db2id, getattr(self, login_func)())
  File "/home/ragp/git/ASynK/asynk.py", line 1061, in login_cd
    self.get_cduser(), self.get_cdpw())
  File "/home/ragp/git/ASynK/asynk/pimdb_cd.py", line 55, in __init__
    self.cd_init()
  File "/home/ragp/git/ASynK/asynk/pimdb_cd.py", line 280, in cd_init
    logging=self.get_client_logging())
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/account.py", line 23, in __init__
    self.session = CalDAVSession(server, port, ssl, user, pswd, principal, root, logging)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 77, in __init__
    self._initCalDAVState()
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 84, in _initCalDAVState
    self._discoverPrincipal()
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 89, in _discoverPrincipal
    current = self.getCurrentPrincipalResource(self.rootPath)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 396, in getCurrentPrincipalResource
    hrefs = self.getHrefListProperty(rurl, davxml.current_user_principal)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 267, in getHrefListProperty
    self.runSession(request)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 817, in runSession
    self.doSession(request)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 851, in doSession
    if not self.initialise(self.server, self.rootPath.relativeURL()):
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/protocol/webdav/session.py", line 129, in initialise
    self.handleHTTPError(request)
  File "/home/ragp/git/ASynK/lib/caldavclientlibrary/client/clientsession.py", line 959, in handleHTTPError
    request.getStatusReason()))
caldavclientlibrary.protocol.http.util.HTTPError: Code: 400, Reason: Bad Request

Sriram Karra

unread,
Dec 4, 2014, 7:39:15 AM12/4/14
to as...@googlegroups.com

Are you using ownCloud7? Othera have reported issuea getting asynk yo work with OC 7. I have not been found the time to investigate. I may be able to investigate later this month during the holidays.

--
You received this message because you are subscribed to the Google Groups "ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asynk+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/asynk/ca179a1c-8998-4d79-aa88-4af5b7390716%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Georg Pfeiffer

unread,
Dec 4, 2014, 11:10:07 AM12/4/14
to as...@googlegroups.com
Sriram Karra <karr...@gmail.com> writes:

> Othera have reported issuea getting asynk yo work with OC 7. I have
> not been found the time to investigate. I may be able to investigate
> later this month during the holidays.

My ownCloud server is version 7.0.3-1. (debian wheezy = stable). Jessie
has in time v7.0.3, too.

I don't want to disturb your christmas holidays. The problem ist not
really urgent for me. I'm lucky that someone competent cares about
syncing bbdb<->owncloud at all. Thanks a lot for your work and the
fascinating prospects you are opening for us.

Georg

Georg Pfeiffer

unread,
Dec 16, 2014, 9:41:11 PM12/16/14
to as...@googlegroups.com
Am Donnerstag, den 04.12.2014, 17:09 +0100 schrieb Georg Pfeiffer:
> Othera have reported issuea getting asynk yo work with OC 7.

Me too. I created a new ownCloud account with only *one* contact folder.
And now it works great!

Georg

--
https://ragp.de

Reply all
Reply to author
Forward
0 new messages