Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C705F192D8 for ; Thu, 21 Apr 2016 11:26:25 +0000 (UTC) Received: (qmail 40563 invoked by uid 500); 21 Apr 2016 11:26:25 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 40524 invoked by uid 500); 21 Apr 2016 11:26:25 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 40509 invoked by uid 99); 21 Apr 2016 11:26:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 11:26:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 91B3D2C1F54 for ; Thu, 21 Apr 2016 11:26:25 +0000 (UTC) Date: Thu, 21 Apr 2016 11:26:25 +0000 (UTC) From: "Teemu Vesala (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LIBCLOUD-813) create_record of GoDaddy DNS driver throws exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LIBCLOUD-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251738#comment-15251738 ] Teemu Vesala commented on LIBCLOUD-813: --------------------------------------- Additional problem is, that the content-type of request must be applicatoin/json. That is missing from the headers. > create_record of GoDaddy DNS driver throws exception > ---------------------------------------------------- > > Key: LIBCLOUD-813 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-813 > Project: Libcloud > Issue Type: Bug > Components: DNS > Environment: Linux with Python 2.7 > Reporter: Teemu Vesala > > When trying to create new record to zone with GoDaddy DNS Driver it gives following stack trace. (Note - The stacktrace is from the version which fixes LIBCLOUD-811, because the whole driver is unusable without that fix) > {noformat} > Traceback (most recent call last): > File "replicate.py", line 62, in > driver.create_record(record.name, current_zone, RecordType.A, record.data) > File "/home/vagrant/libcloud-test/libcloud/libcloud/dns/drivers/godaddy.py", line 191, in create_record > data=[new_record]) > File "/home/vagrant/libcloud-test/libcloud/libcloud/common/base.py", line 825, in request > headers=headers) > File "/usr/lib/python2.7/httplib.py", line 979, in request > self._send_request(method, url, body, headers) > File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request > self.endheaders(body) > File "/usr/lib/python2.7/httplib.py", line 975, in endheaders > self._send_output(message_body) > File "/usr/lib/python2.7/httplib.py", line 839, in _send_output > self.send(message_body) > File "/usr/lib/python2.7/httplib.py", line 811, in send > self.sock.sendall(data) > File "/usr/lib/python2.7/ssl.py", line 329, in sendall > v = self.send(data[count:]) > File "/usr/lib/python2.7/ssl.py", line 298, in send > v = self._sslobj.write(data) > TypeError: must be string or buffer, not list > {noformat} > The line at driver is: > {code} > self.connection.request( > '/v1/domains/%s/records' % (zone.domain), method='PATCH', > data=[new_record]) > id = self._get_id_of_record(name, type) > {code} > Same kind of structure appears at update_record also, so it might be affected with the same kind of bug also. -- This message was sent by Atlassian JIRA (v6.3.4#6332)