Exception when we receive an HTTP 4xx response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher-dashboard |
Fix Released
|
Medium
|
David TARDIVEL |
Bug Description
Traceback (most recent call last):
File "/opt/.
response = wrapped_
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/.
return self.dispatch(
File "/opt/.
return handler(request, *args, **kwargs)
File "/opt/.
return self.form_
File "/opt/horizon/
exceptions.
File "/opt/horizon/
six.
File "/opt/horizon/
handled = form.handle(
File "/home/
if exc.status_code == 409:
AttributeError: 'BadRequest' object has no attribute 'status_code'
status_code does not exist. We should use http_status
ipdb> exc.
exc.args exc.details exc.http_status exc.message exc.method exc.request_id exc.response exc.url
Another error:
Traceback (most recent call last):
File "/opt/.
response = wrapped_
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/horizon/
return view_func(request, *args, **kwargs)
File "/opt/.
return self.dispatch(
File "/opt/.
return handler(request, *args, **kwargs)
File "/opt/.
return self.form_
File "/opt/horizon/
exceptions.
File "/opt/horizon/
six.
File "/opt/horizon/
handled = form.handle(
File "/home/
msg = _('Failed to create audit "%s".') % data['name']
KeyError: 'name'
description: | updated |
Changed in watcher-dashboard: | |
status: | New → Confirmed |
milestone: | none → ocata-2 |
tags: | added: low-hanging-fruit |
Changed in watcher-dashboard: | |
assignee: | nobody → David TARDIVEL (david-tardivel) |
importance: | Undecided → Medium |
Changed in watcher-dashboard: | |
status: | Confirmed → Fix Released |
This issue was fixed in the openstack/ watcher- dashboard 0.8.0 release.