incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Error reporting from backend (rev 1)
Date Wed, 28 Jul 2010 10:21:41 GMT

I added 'safely do...end' wrap around all methods which are touching
backend clouds in drivers. So now instead of just getting 'Internal Server Error'
you will get HTML/XML representation of backend exception (status 500).

One question remains open. Is there any 'standard' way in REST
to report errors/exceptions ?

Right now we are using this:

<error status="500" url="/api/instances.xml">
  <backend driver="ec2">
    <message>The request signature we calculated does not match the signature you provided.
Check your AWS Secret Access Key and signing method. Consult the service documentation for
    <details>...backtrace goes here...</details>

Possible additions could be: 'backend request url', 'timestamp',
'raw response from backend', etc... Let me know what do you think.

 -- Michal

View raw message