Skip to content

Instantly share code, notes, and snippets.

@dcorking
Created February 10, 2016 17:39
Show Gist options
  • Save dcorking/b563eb13bb3fd6a98deb to your computer and use it in GitHub Desktop.
Save dcorking/b563eb13bb3fd6a98deb to your computer and use it in GitHub Desktop.
Error uploading to S3 with carrierwave and fog
# debug log using DEBUG=true EXCON_DEBUG=true rails s
Started PATCH "/admin/merchants/4/upload_logo?method=patch" for 127.0.0.1 at 2016-02-10 17:01:10 +0000
Processing by Admin::MerchantsController#upload_logo as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Q6nXffNuL6KD368vHXTrTy5lPzV5udMD458mD3lMxAfdXxOcu5HcP9eL7o0J2AymKmA/sGQZUseLtpHsurBA8g==", "merchant"=>{"logo"=>#<ActionDispatch::Http::UploadedFile:0x00563ccc7ac6c8 @tempfile=#<Tempfile:/tmp/RackMultipart20160210-2362-17es9tm.jpeg>, @original_filename="demo-logo500px.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"merchant[logo]\"; filename=\"demo-logo500px.jpeg\"\r\nContent-Type: image/jpeg\r\n">}, "method"=>"patch", "id"=>"4"}
AdminUser Load (1.3ms) SELECT `admin_users`.* FROM `admin_users` WHERE `admin_users`.`id` = 18 ORDER BY `admin_users`.`id` ASC LIMIT 1
Merchant Load (1.2ms) SELECT `merchants`.* FROM `merchants` WHERE `merchants`.`id` = 4 LIMIT 1
(0.4ms) BEGIN
CACHE (0.1ms) SELECT `merchants`.* FROM `merchants` WHERE `merchants`.`id` = 4 LIMIT 1 [["id", 4]]
SQL (48.8ms) UPDATE `merchants` SET `logo` = 'demo-logo500px.jpeg', `updated_at` = '2016-02-10 17:01:10' WHERE `merchants`.`id` = 4
excon.request
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170110Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>>
:retries_remaining => 4
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170110Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 3
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170110Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 2
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170110Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.error
:error => #<Excon::Errors::MovedPermanently: Expected(200) <=> Actual(301 Moved Permanently)
excon.error.request
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170110Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="dcb828d51bf56ae4ca9b23f4385ef1154b8d09e9a63876cb240bfd6891067332", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=true>
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.error.response
:body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><Bucket>com-dcorking-myapp-devel</Bucket><Endpoint>s3.amazonaws.com</Endpoint><RequestId>BE0C6F6602D65766</RequestId><HostId>09rDrTVTBGyNoISNBhrx9zd7y/+18n6NIoz9UqeHkgwlxHJvn26YOZX0RZ27w2IUqFKTYds6COM=</HostId></Error>"
:headers => {
"Connection" => "close"
"Content-Type" => "application/xml"
"Date" => "Wed, 10 Feb 2016 17:01:12 GMT"
"Server" => "AmazonS3"
"x-amz-id-2" => "09rDrTVTBGyNoISNBhrx9zd7y/+18n6NIoz9UqeHkgwlxHJvn26YOZX0RZ27w2IUqFKTYds6COM="
"x-amz-request-id" => "BE0C6F6602D65766"
}
:local_address => "192.168.75.135"
:local_port => 51894
:reason_phrase => "Moved Permanently"
:remote_ip => "54.231.168.185"
:status => 301
:status_line => "HTTP/1.1 301 Moved Permanently\r\n"
>
[fog][WARNING] fog: followed redirect to com-dcorking-myapp-devel.s3-us-west-2.amazonaws.com, connecting to the matching region will be more performant
excon.request
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 4
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 3
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 2
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.retry
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=false>
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.error
:error => #<Excon::Errors::Forbidden: Expected(200) <=> Actual(403 Forbidden)
excon.error.request
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="dcb828d51bf56ae4ca9b23f4385ef1154b8d09e9a63876cb240bfd6891067332", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=true>
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.error.response
:body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>AKIAJ2PGJAAOLUBPQMKQ</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256-PAYLOAD\n20160210T170113Z\n20160210/us-east-1/s3/aws4_request\n5be35c29753de4fb9248cc770ed3f18054245d9ea81af4383e00f997f5afb569\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\n43b6001efc15ec4b0f70abd06d93d289d1f80825d1698d1717be7649fe12e0a8</StringToSign><SignatureProvided>c0d36c02548c32ea0813dc299efa5c0c19b8c45f4f600831a91f172cdbeb976d</SignatureProvided><StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44 0a 32 30 31 36 30 32 31 30 54 31 37 30 31 31 33 5a 0a 32 30 31 36 30 32 31 30 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 35 62 65 33 35 63 32 39 37 35 33 64 65 34 66 62 39 32 34 38 63 63 37 37 30 65 64 33 66 31 38 30 35 34 32 34 35 64 39 65 61 38 31 61 66 34 33 38 33 65 30 30 66 39 39 37 66 35 61 66 62 35 36 39 0a 65 33 62 30 63 34 34 32 39 38 66 63 31 63 31 34 39 61 66 62 66 34 63 38 39 39 36 66 62 39 32 34 32 37 61 65 34 31 65 34 36 34 39 62 39 33 34 63 61 34 39 35 39 39 31 62 37 38 35 32 62 38 35 35 0a 34 33 62 36 30 30 31 65 66 63 31 35 65 63 34 62 30 66 37 30 61 62 64 30 36 64 39 33 64 32 38 39 64 31 66 38 30 38 32 35 64 31 36 39 38 64 31 37 31 37 62 65 37 36 34 39 66 65 31 32 65 30 61 38</StringToSignBytes><CanonicalRequest>PUT\n/uploads/merchant/logo/4/demo-logo500px.jpeg\n\ncache-control:max-age=315576000\ncontent-type:image/jpeg\nhost:com-dcorking-myapp-devel.s3.amazonaws.com\nx-amz-acl:private\nx-amz-content-sha256:STREAMING-AWS4-HMAC-SHA256-PAYLOAD\nx-amz-date:20160210T170113Z\nx-amz-decoded-content-length:17605\n\ncache-control;content-type;host;x-amz-acl;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length\nSTREAMING-AWS4-HMAC-SHA256-PAYLOAD</CanonicalRequest><CanonicalRequestBytes>50 55 54 0a 2f 75 70 6c 6f 61 64 73 2f 6d 65 72 63 68 61 6e 74 2f 6c 6f 67 6f 2f 34 2f 64 65 6d 6f 2d 6c 6f 67 6f 35 30 30 70 78 2e 6a 70 65 67 0a 0a 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3a 6d 61 78 2d 61 67 65 3d 33 31 35 35 37 36 30 30 30 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 69 6d 61 67 65 2f 6a 70 65 67 0a 68 6f 73 74 3a 63 6f 6d 2d 64 63 6f 72 6b 69 6e 67 2d 63 68 69 70 70 69 6e 2d 64 65 76 65 6c 2e 73 33 2e 61 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 0a 78 2d 61 6d 7a 2d 61 63 6c 3a 70 72 69 76 61 74 65 0a 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3a 53 54 52 45 41 4d 49 4e 47 2d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44 0a 78 2d 61 6d 7a 2d 64 61 74 65 3a 32 30 31 36 30 32 31 30 54 31 37 30 31 31 33 5a 0a 78 2d 61 6d 7a 2d 64 65 63 6f 64 65 64 2d 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 3a 31 37 36 30 35 0a 0a 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3b 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3b 68 6f 73 74 3b 78 2d 61 6d 7a 2d 61 63 6c 3b 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3b 78 2d 61 6d 7a 2d 64 61 74 65 3b 78 2d 61 6d 7a 2d 64 65 63 6f 64 65 64 2d 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 0a 53 54 52 45 41 4d 49 4e 47 2d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44</CanonicalRequestBytes><RequestId>6608597D2529228D</RequestId><HostId>X6VXSdcPfCBgLJAX2EiNI5rpHJSKFnXLSrBMWmKeIQS4SrNXEFX7EwZHCo6e6tVKFkVEPuhliCo=</HostId></Error>"
:headers => {
"Connection" => "close"
"Content-Type" => "application/xml"
"Date" => "Wed, 10 Feb 2016 17:01:16 GMT"
"Server" => "AmazonS3"
"x-amz-id-2" => "X6VXSdcPfCBgLJAX2EiNI5rpHJSKFnXLSrBMWmKeIQS4SrNXEFX7EwZHCo6e6tVKFkVEPuhliCo="
"x-amz-request-id" => "6608597D2529228D"
}
:local_address => "192.168.75.135"
:local_port => 33642
:reason_phrase => "Forbidden"
:remote_ip => "54.231.81.160"
:status => 403
:status_line => "HTTP/1.1 403 Forbidden\r\n"
>
(98.6ms) ROLLBACK
Completed 500 Internal Server Error in 7305ms (ActiveRecord: 150.4ms)
AdminUser Load (0.9ms) SELECT `admin_users`.* FROM `admin_users` WHERE `admin_users`.`id` = 18 ORDER BY `admin_users`.`id` ASC LIMIT 1
** [Bugsnag] Notifying https://notify.bugsnag.com of Excon::Errors::MovedPermanently from api_key d0d72977ea9cf802474e70581d913e5d
Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
excon.error.request
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Type" => "image/jpeg"
"Host" => "com-dcorking-myapp-devel.s3.amazonaws.com"
"Transfer-Encoding" => "chunked"
"User-Agent" => "fog/1.37.0 fog-core/1.35.0"
"x-amz-acl" => "private"
"x-amz-content-sha256" => "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"
"x-amz-date" => "20160210T170113Z"
"x-amz-decoded-content-length" => 17605
}
:host => "com-dcorking-myapp-devel.s3.amazonaws.com"
:hostname => "com-dcorking-myapp-devel.s3.amazonaws.com"
:idempotent => true
:instrumentor => Excon::StandardInstrumentor
:instrumentor_name => "excon"
:method => "PUT"
:middlewares => [
Excon::Middleware::ResponseParser
Excon::Middleware::Expects
Excon::Middleware::Idempotent
Excon::Middleware::Instrumentor
Excon::Middleware::Mock
Excon::Middleware::NewRelicCrossAppTracing
]
:mock => false
:nonblock => true
:omit_default_port => false
:path => "/uploads/merchant/logo/4/demo-logo500px.jpeg"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:request_block => #<Fog::Storage::AWS::Real::S3Streamer:0x00563ccc5e6640 @body=#<File:/home/david1/workspace/myapp/public/uploads/tmp/1455123670-2362-1259/demo-logo500px.jpeg>, @date=2016-02-10 17:01:10 UTC, @signature="dcb828d51bf56ae4ca9b23f4385ef1154b8d09e9a63876cb240bfd6891067332", @initial_signature="d0d550a165537b51e13906066ab064341c9532f33df9ee9113bc1ad54fd18047", @signer=#<Fog::AWS::SignatureV4:0x007fad905d4400 @region="us-west-2", @service="s3", @aws_access_key_id="AKIAJ2PGJAAOLUBPQMKQ", @hmac=#<Fog::HMAC:0x007fad905d4360 @key="AWS42d2xWu9ijxjzWcFbQXa5Rw53wHX6j7hX6VlDyHvi", @digest=#<OpenSSL::Digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>, @signer=#<Proc:0x007fad905d42c0@/home/david1/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/fog-core-1.35.0/lib/fog/core/hmac.rb:28 (lambda)>>>, @finished=true>
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:thread_safe_sockets => true
:uri_parser => URI
:versions => "excon/0.45.4 (x86_64-linux) ruby/2.2.0"
:write_timeout => 60
excon.error.response
:body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><AWSAccessKeyId>AKIAJ2PGJAAOLUBPQMKQ</AWSAccessKeyId><StringToSign>AWS4-HMAC-SHA256-PAYLOAD\n20160210T170113Z\n20160210/us-east-1/s3/aws4_request\n5be35c29753de4fb9248cc770ed3f18054245d9ea81af4383e00f997f5afb569\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\n43b6001efc15ec4b0f70abd06d93d289d1f80825d1698d1717be7649fe12e0a8</StringToSign><SignatureProvided>c0d36c02548c32ea0813dc299efa5c0c19b8c45f4f600831a91f172cdbeb976d</SignatureProvided><StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44 0a 32 30 31 36 30 32 31 30 54 31 37 30 31 31 33 5a 0a 32 30 31 36 30 32 31 30 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 35 62 65 33 35 63 32 39 37 35 33 64 65 34 66 62 39 32 34 38 63 63 37 37 30 65 64 33 66 31 38 30 35 34 32 34 35 64 39 65 61 38 31 61 66 34 33 38 33 65 30 30 66 39 39 37 66 35 61 66 62 35 36 39 0a 65 33 62 30 63 34 34 32 39 38 66 63 31 63 31 34 39 61 66 62 66 34 63 38 39 39 36 66 62 39 32 34 32 37 61 65 34 31 65 34 36 34 39 62 39 33 34 63 61 34 39 35 39 39 31 62 37 38 35 32 62 38 35 35 0a 34 33 62 36 30 30 31 65 66 63 31 35 65 63 34 62 30 66 37 30 61 62 64 30 36 64 39 33 64 32 38 39 64 31 66 38 30 38 32 35 64 31 36 39 38 64 31 37 31 37 62 65 37 36 34 39 66 65 31 32 65 30 61 38</StringToSignBytes><CanonicalRequest>PUT\n/uploads/merchant/logo/4/demo-logo500px.jpeg\n\ncache-control:max-age=315576000\ncontent-type:image/jpeg\nhost:com-dcorking-myapp-devel.s3.amazonaws.com\nx-amz-acl:private\nx-amz-content-sha256:STREAMING-AWS4-HMAC-SHA256-PAYLOAD\nx-amz-date:20160210T170113Z\nx-amz-decoded-content-length:17605\n\ncache-control;content-type;host;x-amz-acl;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length\nSTREAMING-AWS4-HMAC-SHA256-PAYLOAD</CanonicalRequest><CanonicalRequestBytes>50 55 54 0a 2f 75 70 6c 6f 61 64 73 2f 6d 65 72 63 68 61 6e 74 2f 6c 6f 67 6f 2f 34 2f 64 65 6d 6f 2d 6c 6f 67 6f 35 30 30 70 78 2e 6a 70 65 67 0a 0a 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3a 6d 61 78 2d 61 67 65 3d 33 31 35 35 37 36 30 30 30 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 69 6d 61 67 65 2f 6a 70 65 67 0a 68 6f 73 74 3a 63 6f 6d 2d 64 63 6f 72 6b 69 6e 67 2d 63 68 69 70 70 69 6e 2d 64 65 76 65 6c 2e 73 33 2e 61 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 0a 78 2d 61 6d 7a 2d 61 63 6c 3a 70 72 69 76 61 74 65 0a 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3a 53 54 52 45 41 4d 49 4e 47 2d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44 0a 78 2d 61 6d 7a 2d 64 61 74 65 3a 32 30 31 36 30 32 31 30 54 31 37 30 31 31 33 5a 0a 78 2d 61 6d 7a 2d 64 65 63 6f 64 65 64 2d 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 3a 31 37 36 30 35 0a 0a 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3b 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3b 68 6f 73 74 3b 78 2d 61 6d 7a 2d 61 63 6c 3b 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3b 78 2d 61 6d 7a 2d 64 61 74 65 3b 78 2d 61 6d 7a 2d 64 65 63 6f 64 65 64 2d 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 0a 53 54 52 45 41 4d 49 4e 47 2d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 2d 50 41 59 4c 4f 41 44</CanonicalRequestBytes><RequestId>6608597D2529228D</RequestId><HostId>X6VXSdcPfCBgLJAX2EiNI5rpHJSKFnXLSrBMWmKeIQS4SrNXEFX7EwZHCo6e6tVKFkVEPuhliCo=</HostId></Error>"
:headers => {
"Connection" => "close"
"Content-Type" => "application/xml"
"Date" => "Wed, 10 Feb 2016 17:01:16 GMT"
"Server" => "AmazonS3"
"x-amz-id-2" => "X6VXSdcPfCBgLJAX2EiNI5rpHJSKFnXLSrBMWmKeIQS4SrNXEFX7EwZHCo6e6tVKFkVEPuhliCo="
"x-amz-request-id" => "6608597D2529228D"
}
:local_address => "192.168.75.135"
:local_port => 33642
:reason_phrase => "Forbidden"
:remote_ip => "54.231.81.160"
:status => 403
:status_line => "HTTP/1.1 403 Forbidden\r\n"
):
app/controllers/admin/merchants_controller.rb:32:in `upload_logo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment