Bug #241

econe-server errors are not properly formatted AWS-style XML

Added by Claude Noshpitz over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:05/14/2010
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

0%

Category:-
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

Description

Apparently econe-server is returning response-bodies that just contain a string when something goes wrong, rather than XML which is parseable by the AWS class from amazon-ec2. AWS doesn't raise particularly informative exceptions when it just can't parse the response properly. This ends up yielding cryptic error messages from the CLI like:

econe-describe-instances: undefined method `elements' for nil:NilClass

An easy fix in econe-server.rb looks something like:
64,66c63

< halt 401, 'Invalid credentials'
---

halt 401, '<Response><Errors><Error><Code>InvalidCredentials</Code><Message>Invalid credentials</Message></Error></Errors><RequestID>0</RequestID></Response>'

Associated revisions

Revision 423e75b9
Added by Miguel Cabrerizo over 2 years ago

Merge pull request #241 from juanmont/feature-4913

Feature 4913. Keep disks on done and datastore selection removal from vm create/update

History

#1 Updated by Tino Vázquez over 9 years ago

  • Assignee set to Tino Vázquez
  • Target version set to Release 1.4.2

#2 Updated by Ruben S. Montero over 9 years ago

  • Category set to 11
  • Status changed from New to Closed
  • Target version changed from Release 1.4.2 to Release 2.0
  • Resolution set to fixed

Fix available in master.

#3 Updated by Ruben S. Montero over 9 years ago

For reference, the changeset is 23e40d1b19537aa5cdfae49fec3d1bb6c6395c06

Also available in: Atom PDF