1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws
James Bence b7b8367770 Inspect error.response.body, not error.message
Recent versions of excon have a middleware component,
Excon::Middleware::Expects and fog requests mostly record an expectation
of a 200 status code. Some calls to AWS return status other than 200 and
in some cases the error handling obscures the underlying error.

Current handling parsed error.message; this instance of error is
constructed by excon and includes the response as an attribute. The
message is always something like 'Expected(200) <=> Actual(404 Not Found)'
and so the parsing never succeeds.

Instead we now attempt to parse error.response.body which should allow
extraction of the underlying AWS Code value, which in turn will produce
an exception that points to the actual underlying cause.
2013-07-01 16:47:29 -07:00
..
elb updating for SSL ciphers and protocols 2012-02-26 01:53:17 -08:00
models Merge pull request #1831 from contentfree/master 2013-06-14 07:03:46 -07:00
parsers [AWS | Compute] Added copy_image request with parser, mocks and tests. 2013-06-07 23:55:03 +02:00
requests Merge pull request #1874 from mikehale/asg-exclude-instances 2013-06-14 05:27:11 -07:00
auto_scaling.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
beanstalk.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
cdn.rb [aws|cdn] add request mock support for AWS Cloudfront 2012-09-28 11:24:36 +02:00
cloud_formation.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
cloud_watch.rb Add support for AWS Australia (ap-southeast-2). 2012-11-13 18:32:07 -08:00
compute.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
credential_fetcher.rb [aws] Fixes typo in fetching credentials error 2013-01-21 17:36:53 +00:00
data_pipeline.rb Rudimentary CRUD for AWS Data Pipeline 2013-02-17 15:27:41 -05:00
dns.rb Merge pull request #995 from m0use/bugfix-persistent-conn 2012-06-24 12:07:25 -07:00
dynamodb.rb Fix typo in method name for DynamoDB::Mock#setup_credentials 2013-05-01 13:38:35 +10:00
elasticache.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
elb.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
emr.rb [AWS] make beanstalk, cdn, cloudformation, cloudwatch, elasticache, elb, storage, rds, ses, sns, route53 temporary credential friendly 2012-06-20 23:26:04 +01:00
glacier.rb [aws|dynamodb] port off of sts for credentials, now uses signature v4 2012-11-29 16:25:49 -06:00
iam.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
rds.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
ses.rb [AWS] make beanstalk, cdn, cloudformation, cloudwatch, elasticache, elb, storage, rds, ses, sns, route53 temporary credential friendly 2012-06-20 23:26:04 +01:00
signaturev4.rb [aws|dynamodb] port off of sts for credentials, now uses signature v4 2012-11-29 16:25:49 -06:00
simpledb.rb start an instance with an IAM profile and access the credentials 2012-06-20 23:17:46 +01:00
sns.rb remove stray multijson require 2012-06-22 16:28:32 +01:00
sqs.rb Add support for AWS Australia (ap-southeast-2). 2012-11-13 18:32:07 -08:00
storage.rb Add post_object_restore support 2013-06-10 16:14:38 -05:00
sts.rb Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00