reporting an error from the environment isn't formatted well

Bug #1251420 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui (Juju Charms Collection)
Fix Released
High
Brad Crittenden

Bug Description

In testing watching a deployer process there are bundles with the default constraints that caused a Go EnvError. This came out of the watcher as

{
   "Response":{
      "Changes":[
         {
            "Status":"completed",
            "DeploymentId":1,
            "Error":"<Env Error - Details:\n { u'Error': u'json: cannot unmarshal string into Go value of type uint64',\n u'RequestId': 1,\n u'Response': { }}\n >",
            "Time":1384461205
         }
      ]
   },
   "RequestId":11
}

The Error should be in a better format to be able to be used. Either a nested object, or just a message.

Related branches

Revision history for this message
Richard Harding (rharding) wrote :

In talking with Francesco, this is the string representation of the EnvError. We can try to hack around this by checking the error type and cleaning the error in this case, but maybe we should file this up to the client and have it update it's original representation.

Revision history for this message
Brad Crittenden (bac) wrote :

The error needs to be returned in a better format in the upstream, either the deployer or the juju-client.

Changed in juju-gui (Juju Charms Collection):
assignee: nobody → Brad Crittenden (bac)
Brad Crittenden (bac)
Changed in juju-gui (Juju Charms Collection):
status: Triaged → Fix Committed
Changed in juju-gui (Juju Charms Collection):
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.