Incorrect error handling for failed requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-designateclient |
Fix Released
|
Undecided
|
Dr. Jens Harbott |
Bug Description
If the client receives some kind of unexpected response from the server, it may fail with an error like
__init__() got an unexpected keyword argument 'title'
instead of producing a proper error message. In order to reproduce this, let the dns endpoint lead to some other service like glance-registry (9191 instead of 9001 in the default setup), resulting in:
$ openstack --debug zone list
...
__init__() got an unexpected keyword argument 'title'
Traceback (most recent call last):
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
column_names, data = self.take_
File "/usr/local/
data = get_all(
File "/usr/local/
data = function(*args, criterion=
File "/usr/local/
return self._get(url, response_
File "/usr/local/
resp, body = self.client.
File "/usr/local/
return self.request(url, 'GET', **kwargs)
File "/usr/local/
raise exceptions.
TypeError: __init__() got an unexpected keyword argument 'title'
Changed in python-designateclient: | |
assignee: | nobody → Dr. Jens Harbott (j-harbott) |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/500003
Review: https:/