ptoma98 / skytap-cloud-plugin

Repository for Release 2 of the Skytap Plugin
0 stars 0 forks source link

question re: error returned when requesting vms #5

Open ptoma98 opened 10 years ago

ptoma98 commented 10 years ago

When executing a request like this: https://cloud.skytap.com/configurations/1453536/vms/2554726

You get back a json object like the one below. As you can see below, you get an error element which is a boolean primitive. I can handle the case where its false, but if its true, where is the error message displayed, as I need to handle that case in the 'checkResponseForErrors' method in skytapUtils.

"error": false,

{ "asset_id": null, "can_change_object_state": true, "configuration_url": "https://cloud.skytap.com/configurations/1453536", "credentials": [ { "id": "1828320", "text": "skytap / ChangeMe!" }, { "id": "1828322", "text": "root / ChangeMe!" } ], "desktop_resizable": true, "error": false, "hardware": { "cpus": 1, . . .

tjmilligan commented 10 years ago

The short answer is I don't know. I guess you could maybe induce an error and see if there is some kind of message param added to the json. I'll also see if I can induce an error and see what happens.

Tom Milligan

On Jan 25, 2014, at 4:52 PM, "Patrick Toma" notifications@github.com<mailto:notifications@github.com> wrote:

When executing a request like this: https://cloud.skytap.com/configurations/1453536/vms/2554726

You get back a json object like the one below. As you can see below, you get an error element which is a boolean primitive. I can handle the case where its false, but if its true, where is the error message displayed, as I need to handle that case in the 'checkResponseForErrors' method in skytapUtils.

"error": false,

{ "asset_id": null, "can_change_object_state": true, "configuration_url": "https://cloud.skytap.com/configurations/1453536", "credentials": [ { "id": "1828320", "text": "skytap / ChangeMe!" }, { "id": "1828322", "text": "root / ChangeMe!" } ], "desktop_resizable": true, "error": false, "hardware": { "cpus": 1, . . .

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/5.

tjmilligan commented 10 years ago

I'm going to need to plead ongoing ignorance on this one and see if I can figure out how to induce an error to see what happens.