Skip to content

Instantly share code, notes, and snippets.

@janetruluck
Created June 6, 2014 17:46
Show Gist options
  • Save janetruluck/ff5a82c69fcaa04a78d6 to your computer and use it in GitHub Desktop.
Save janetruluck/ff5a82c69fcaa04a78d6 to your computer and use it in GitHub Desktop.
Output for Excon debugging
excon.request
:body => #<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_reponse => true
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Content-Length" => 148727
"Content-Type" => "image/png"
"Date" => "Fri, 06 Jun 2014 17:39:25 +0000"
"Host" => "test.s3.amazonaws.com:443"
"User-Agent" => "fog/1.22.0"
"x-amz-acl" => "public-read"
}
:host => "test.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
]
:mock => false
:nonblock => true
:omit_default_port => false
:password => "REDACTED"
:path => "/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:retries_remaining => 4
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:uri_parser => URI
:user => nil
:write_timeout => 60
excon.retry
:body => #<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_reponse => true
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Connection" => "TE, close"
"Content-Length" => 148727
"Content-Type" => "image/png"
"Date" => "Fri, 06 Jun 2014 17:39:25 +0000"
"Host" => "test.s3.amazonaws.com:443"
"TE" => "trailers, deflate, gzip"
"User-Agent" => "fog/1.22.0"
"x-amz-acl" => "public-read"
}
:host => "test.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
]
:mock => false
:nonblock => true
:omit_default_port => false
:password => "REDACTED"
:path => "/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:retries_remaining => 3
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:uri_parser => URI
:user => nil
:write_timeout => 60
excon.retry
:body => #<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_reponse => true
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Connection" => "TE, close"
"Content-Length" => 148727
"Content-Type" => "image/png"
"Date" => "Fri, 06 Jun 2014 17:39:25 +0000"
"Host" => "test.s3.amazonaws.com:443"
"TE" => "trailers, deflate, gzip"
"User-Agent" => "fog/1.22.0"
"x-amz-acl" => "public-read"
}
:host => "test.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
]
:mock => false
:nonblock => true
:omit_default_port => false
:password => "REDACTED"
:path => "/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:retries_remaining => 2
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:uri_parser => URI
:user => nil
:write_timeout => 60
excon.retry
:body => #<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>
:chunk_size => 1048576
:ciphers => "HIGH:!SSLv2:!aNULL:!eNULL:!3DES"
:connect_timeout => 60
:debug_reponse => true
:debug_request => true
:debug_response => true
:expects => 200
:headers => {
"Authorization" => "REDACTED"
"Cache-Control" => "max-age=315576000"
"Connection" => "TE, close"
"Content-Length" => 148727
"Content-Type" => "image/png"
"Date" => "Fri, 06 Jun 2014 17:39:25 +0000"
"Host" => "test.s3.amazonaws.com:443"
"TE" => "trailers, deflate, gzip"
"User-Agent" => "fog/1.22.0"
"x-amz-acl" => "public-read"
}
:host => "test.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
]
:mock => false
:nonblock => true
:omit_default_port => false
:password => "REDACTED"
:path => "/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png"
:persistent => false
:port => 443
:query => nil
:read_timeout => 60
:retries_remaining => 1
:retry_limit => 4
:scheme => "https"
:ssl_verify_peer => true
:tcp_nodelay => false
:uri_parser => URI
:user => nil
:write_timeout => 60
excon.error
:error => #<Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)
request => {:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>true, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.22.0", "Content-Length"=>148727, "Content-Type"=>"image/png", "x-amz-acl"=>"public-read", "Cache-Control"=>"max-age=315576000", "Date"=>"Fri, 06 Jun 2014 17:39:25 +0000", "Authorization"=>"REDACTED", "Host"=>"test.s3.amazonaws.com:443", "TE"=>"trailers, deflate, gzip", "Connection"=>"TE, close"}, :idempotent=>true, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"test.s3.amazonaws.com", :path=>"/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor, :debug_reponse=>true, :body=>#<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>, :expects=>200, :method=>"PUT", :retries_remaining=>1}
response => #<Excon::Response:0x26122b10 @remote_ip="176.32.116.25", @body="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>C2FB63ED0638F528</RequestId><HostId>n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj</HostId></Error>", @local_port=60956, @headers={"x-amz-request-id"=>"C2FB63ED0638F528", "x-amz-id-2"=>"n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj", "Content-Type"=>"application/xml", "Transfer-Encoding"=>"", "Date"=>"Fri, 06 Jun 2014 17:40:51 GMT", "Connection"=>"close", "Server"=>"AmazonS3"}, @local_address="192.168.1.11", @data={:body=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>C2FB63ED0638F528</RequestId><HostId>n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj</HostId></Error>", :headers=>{"x-amz-request-id"=>"C2FB63ED0638F528", "x-amz-id-2"=>"n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj", "Content-Type"=>"application/xml", "Transfer-Encoding"=>"", "Date"=>"Fri, 06 Jun 2014 17:40:51 GMT", "Connection"=>"close", "Server"=>"AmazonS3"}, :status=>400, :remote_ip=>"176.32.116.25", :local_port=>60956, :local_address=>"192.168.1.11"}, @status=400>>
Excon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)
request => {:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>true, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.22.0", "Content-Length"=>148727, "Content-Type"=>"image/png", "x-amz-acl"=>"public-read", "Cache-Control"=>"max-age=315576000", "Date"=>"Fri, 06 Jun 2014 17:39:25 +0000", "Authorization"=>"REDACTED", "Host"=>"test.s3.amazonaws.com:443", "TE"=>"trailers, deflate, gzip", "Connection"=>"TE, close"}, :idempotent=>true, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>false, :read_timeout=>60, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"test.s3.amazonaws.com", :path=>"/development/type/item/852e4760-cb70-43af-aa15-047d6d6be0ef/b0679820-f3ca-49da-adcd-7da3d1a5763d.png", :port=>443, :query=>nil, :scheme=>"https", :user=>nil, :password=>nil, :instrumentor=>Excon::StandardInstrumentor, :debug_reponse=>true, :body=>#<File:/Users/jason/Projects/private/project/core/public/images/public/images/1402076353-18822-7607/item.png>, :expects=>200, :method=>"PUT", :retries_remaining=>1}
response => #<Excon::Response:0x26122b10 @remote_ip="176.32.116.25", @body="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>C2FB63ED0638F528</RequestId><HostId>n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj</HostId></Error>", @local_port=60956, @headers={"x-amz-request-id"=>"C2FB63ED0638F528", "x-amz-id-2"=>"n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj", "Content-Type"=>"application/xml", "Transfer-Encoding"=>"", "Date"=>"Fri, 06 Jun 2014 17:40:51 GMT", "Connection"=>"close", "Server"=>"AmazonS3"}, @local_address="192.168.1.11", @data={:body=>"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>C2FB63ED0638F528</RequestId><HostId>n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj</HostId></Error>", :headers=>{"x-amz-request-id"=>"C2FB63ED0638F528", "x-amz-id-2"=>"n3r8C8Lbf8x7K0nS5RMSqq/gAYtwLyMRdZn5Fber6MjYiLoN47nPU3JeQ2em88Vj", "Content-Type"=>"application/xml", "Transfer-Encoding"=>"", "Date"=>"Fri, 06 Jun 2014 17:40:51 GMT", "Connection"=>"close", "Server"=>"AmazonS3"}, :status=>400, :remote_ip=>"176.32.116.25", :local_port=>60956, :local_address=>"192.168.1.11"}, @status=400>
PATH
remote: .
specs:
rexxcore (0.0.1-java)
activerecord (~> 4)
activerecord-jdbcpostgresql-adapter (~> 1.3.0)
acts_as_list (~> 0.4.0)
awesome_nested_set (~> 3.0.0.rc5)
bcrypt-ruby (~> 3.1.0)
carrierwave (~> 0.10.0)
excon (~> 0.36)
fog
kaminari (~> 0.15.0)
mini_magick (~> 3.7.0)
paper_trail (~> 3.0)
sidekiq (~> 3.1.0)
GEM
remote: https://rubygems.org/
specs:
actionpack (4.1.1)
actionview (= 4.1.1)
activesupport (= 4.1.1)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
activerecord (4.1.1)
activemodel (= 4.1.1)
activesupport (= 4.1.1)
arel (~> 5.0.0)
activerecord-jdbc-adapter (1.3.7)
activerecord (>= 2.2)
activerecord-jdbcpostgresql-adapter (1.3.7)
activerecord-jdbc-adapter (~> 1.3.7)
jdbc-postgres (>= 9.1)
activesupport (4.1.1)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
acts_as_list (0.4.0)
activerecord (>= 3.0)
arel (5.0.1.20140414130214)
awesome_nested_set (3.0.0.rc.5)
activerecord (>= 4.0.0, < 5)
bcrypt (3.1.7-java)
bcrypt-ruby (3.1.5-java)
bcrypt (>= 3.1.3)
builder (3.2.2)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
celluloid (0.15.2)
timers (~> 1.1.0)
connection_pool (2.0.0)
database_cleaner (1.3.0)
diff-lcs (1.2.5)
docile (1.1.3)
erubis (2.7.0)
excon (0.36.0)
factory_girl (4.4.0)
activesupport (>= 3.0.0)
faker (1.3.0)
i18n (~> 0.5)
fog (1.22.1)
fog-brightbox
fog-core (~> 1.22)
fog-json
ipaddress (~> 0.5)
nokogiri (~> 1.5, >= 1.5.11)
fog-brightbox (0.0.2)
fog-core
fog-json
fog-core (1.22.0)
builder
excon (~> 0.33)
formatador (~> 0.2)
mime-types
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
fog-json (1.0.0)
multi_json (~> 1.0)
formatador (0.2.5)
i18n (0.6.10)
ipaddress (0.8.0)
jdbc-postgres (9.3.1101)
json (1.8.1-java)
kaminari (0.15.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
mime-types (2.3)
mini_magick (3.7.0)
subexec (~> 0.2.1)
minitest (5.3.4)
multi_json (1.10.1)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
nokogiri (1.6.2.1-java)
paper_trail (3.0.2)
activerecord (>= 3.0, < 5.0)
activesupport (>= 3.0, < 5.0)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rake (10.3.2)
redis (3.0.7)
redis-namespace (1.4.1)
redis (~> 3.0.4)
rspec (3.0.0)
rspec-core (~> 3.0.0)
rspec-expectations (~> 3.0.0)
rspec-mocks (~> 3.0.0)
rspec-core (3.0.0)
rspec-support (~> 3.0.0)
rspec-expectations (3.0.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0)
rspec-mocks (3.0.0)
rspec-support (~> 3.0.0)
rspec-support (3.0.0)
shoulda-matchers (2.6.1)
activesupport (>= 3.0.0)
sidekiq (3.1.3)
celluloid (>= 0.15.2)
connection_pool (>= 2.0.0)
json
redis (>= 3.0.6)
redis-namespace (>= 1.3.1)
simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
subexec (0.2.3)
thread_safe (0.3.4-java)
timers (1.1.0)
tzinfo (1.2.1)
thread_safe (~> 0.1)
PLATFORMS
java
DEPENDENCIES
bundler (~> 1.6)
database_cleaner
factory_girl
faker
rake
rexxcore!
rspec
shoulda-matchers
simplecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment