Confusing error message when missing a field

Bug #1637952 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Invalid
Undecided
Unassigned
WSME
New
Undecided
Unassigned

Bug Description

I tried to create an event alarm this way:
client.alarm.create({'type': 'event', 'event_rule': {'event_type': 'compute'}})

Aodh returned me this:

aodhclient.exceptions.BadRequest: Invalid input for field/attribute name. Value: 'None'. Mandatory field missing. (HTTP 400)

It would be much more helpful if I actually had the field name. I suspect it's query in that case.

Revision history for this message
Thomas Herve (therve) wrote :

Oh, the field *is* name... It's still confusing, but less so. Let's call it monday.

Changed in aodh:
status: New → Invalid
Revision history for this message
Julien Danjou (jdanjou) wrote :

You're right we should put quote around the field name.

Changed in aodh:
status: Invalid → Triaged
Revision history for this message
gordon chung (chungg) wrote :
Changed in aodh:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.