The error message may be improved when we have a bad template

Bug #1261224 reported by Chmouel Boudjnah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Released
Medium
Chmouel Boudjnah

Bug Description

When the template cannot be parsed by the json module, we get a standard cryptic json message :

No JSON object could be decoded

this is telling us that the json is wrong but not where exactly.

is it the json back from the servers?
is it from the template file?
is it from keystone?

a more meaningful error message pointing to the template file would probably help users.

Changed in python-heatclient:
assignee: nobody → Chmouel Boudjnah (chmouel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/62255

Changed in python-heatclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/62311

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/62255
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=62e7e0c77ef22aae6b0c0a85a950fead4d96b074
Submitter: Jenkins
Branch: master

commit 62e7e0c77ef22aae6b0c0a85a950fead4d96b074
Author: Chmouel Boudjnah <email address hidden>
Date: Sun Dec 15 23:51:43 2013 +0100

    Use jsonutils from oslo incubator

    Partial-Bug: #1261224
    Change-Id: I9a1e4e661e11a423586869ca504c41028934f8de

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/62311
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=2bf2d6f1d2bd3f55f4f177942d3ea7a3592643fe
Submitter: Jenkins
Branch: master

commit 2bf2d6f1d2bd3f55f4f177942d3ea7a3592643fe
Author: Chmouel Boudjnah <email address hidden>
Date: Mon Dec 16 00:01:50 2013 +0100

    Show better error when json fail to parse template

    Change-Id: I0d888fc180dd118c50b93ce4393f06d89780a0c5
    Partial-Bug: 1261224

Changed in python-heatclient:
status: In Progress → Fix Committed
Changed in python-heatclient:
importance: Undecided → Medium
milestone: none → v0.2.7
Changed in python-heatclient:
status: Fix Committed → Fix Released
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.