Tuesday 15 April 2014

amazon ec2 - How do I get useful diagnostics from boto? -


How do I get a useful diagnosis outside the bot? I sometimes find that it is maliciously "400 Bad Request" I think that Bito is just passing that provides the built-in API, but definitely to make something more useful than "bad request" There is no way.

  Tracebacks (most recent call final): File "./mongo_pulldown.py", line 153, & lt; Module & gt; Main () file "./mongo_pulldown.py", line 24, "snap =% r"% snap file in main print "./mongo_pulldown.py", line 149, __exit__ self.connection.delete_volume (in self.volume ) ID "delete_volume return self.get_status ('DeleteVolume') in the file" /home/roy/deploy/current/python/local/lib/python2.7/site-packages/boto/ec2/connection.py ", in line 1507, , Params, verb = 'POST') file "/home/roy/deploy/current/python/local/lib/python2.7/site-packages/boto/connection.py", line 985, get_status self incremented. Response error (Response.status, response.reason, body) boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request    

Debug: You can control the level of the debug messages: debug = 2

that is printed by the boto library The following values ​​will be defined:

  0 - No debug message has been printed 1 - Original debug messages are printed from Bito 2 - All BITO debugging messages plus rear Cheplbil     

No comments:

Post a Comment