Return-Path: Delivered-To: apmail-incubator-libcloud-archive@minotaur.apache.org Received: (qmail 19524 invoked from network); 11 Feb 2010 01:08:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2010 01:08:59 -0000 Received: (qmail 34065 invoked by uid 500); 11 Feb 2010 01:08:59 -0000 Delivered-To: apmail-incubator-libcloud-archive@incubator.apache.org Received: (qmail 34012 invoked by uid 500); 11 Feb 2010 01:08:59 -0000 Mailing-List: contact libcloud-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud@incubator.apache.org Delivered-To: mailing list libcloud@incubator.apache.org Received: (qmail 34002 invoked by uid 99); 11 Feb 2010 01:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 01:08:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 01:08:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 532C6234C052 for ; Wed, 10 Feb 2010 17:08:29 -0800 (PST) Message-ID: <551248503.198321265850509327.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Feb 2010 01:08:29 +0000 (UTC) From: "Paul Querna (JIRA)" To: libcloud@incubator.apache.org In-Reply-To: <1207536447.1260934038066.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Subject: [libcloud] [jira] Commented: (LIBCLOUD-1) Errors in XML serialization [ https://issues.apache.org/jira/browse/LIBCLOUD-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832340#action_12832340 ] Paul Querna commented on LIBCLOUD-1: ------------------------------------ is there anything we want to do here? I kinda think the LIBCLOUD_DEBUG env variable has replaced the need to debug in element tree most of the time. > Errors in XML serialization > --------------------------- > > Key: LIBCLOUD-1 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-1 > Project: Libcloud > Issue Type: Bug > Components: Core > Reporter: Jeremy Orem > > From http://github.com/cloudkick/libcloud/issues#issue/13: > Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like: > ... > File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error > "cannot serialize %r (type %s)" % (text, type(text).__name__) > TypeError: cannot serialize None (type NoneType) > That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.