recurly/recurly-client-python — Issue #17: Exception on missing credentials
Author: optixx
Created: 2012-02-01 12:59:12+00:00
State: open

If i query the billinginfo without setting the API_KEY and PRIVATE credentials correctyl i get a rather unexpected error.

/opt/devcores/env/lib/python2.6/site-packages/recurly/resource.pyc in get(cls, uuid)
247 """
248 url = urljoin(recurly.BASE_URI, cls.member_path % (uuid,))
--> 249 resp, elem = cls.element_for_url(url)
250 return cls.from_element(elem)
251

/opt/devcores/env/lib/python2.6/site-packages/recurly/resource.pyc in element_for_url(cls, url)
257 response = cls.http_request(url)
258 if response.status != 200:
--> 259 cls.raise_http_error(response)
260
261 assert response.getheader('Content-Type').startswith('application/xml')

/opt/devcores/env/lib/python2.6/site-packages/recurly/resource.pyc in raise_http_error(cls, response)
548 logging.getLogger('recurly.http.response').debug(response_xml)
549 exc_class = recurly.errors.error_class_for_http_status(response.status)
--> 550 raise exc_class(response_xml)
551
552 def to_element(self):

: (, ExpatError('syntax error: line 1, column 0',))