spec/vcr/subscription/addons/remove/1297746103.yml in recurly-0.4.0 vs spec/vcr/subscription/addons/remove/1297746103.yml in recurly-0.4.1
- old
+ new
@@ -30,31 +30,28 @@
connection:
- close
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 201
- message: "Created "
+ message: Created
headers:
cache-control:
- no-cache
location:
- http://app.recurly.local:3000/accounts/subscription-addons-remove-1297746103
x-runtime:
- - "479"
+ - "340"
content-type:
- application/xml; charset=utf-8
content-length:
- "607"
- server:
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
- date:
- - Fri, 11 Mar 2011 18:47:43 GMT
+ set-cookie:
+ - _recurly_session=a8d47b82e12e9707986c9cffe3a3ad1f; domain=.recurly.local; path=/; HttpOnly
connection:
- close
- set-cookie:
- - account_credentials=50cd1b7e428344f080d79d3ee04c34e5caa601ec8f316238d92e27ce7bc79860392771f5d37384b0c5ceb92f10da1a666272607f764595402be3eaab0e8969d3%3A%3A; domain=.recurly.local; path=/
- - _recurly_session=d8605a9e25dd8675b82628f3a86ca9a9; domain=.recurly.local; path=/; HttpOnly
+ server:
+ - thin 1.2.7 codename No Hup
body: |
<?xml version="1.0" encoding="UTF-8"?>
<account>
<id>subscription-addons-remove-1297746103</id>
<account_code>subscription-addons-remove-1297746103</account_code>
@@ -63,12 +60,12 @@
<first_name>Verena</first_name>
<last_name>Test</last_name>
<company_name>Recurly Ruby Gem</company_name>
<balance_in_cents type="integer">0</balance_in_cents>
<closed type="boolean">false</closed>
- <hosted_login_token>60d2c3798c2349618c2fa03ca4a5ccc7</hosted_login_token>
- <created_at type="datetime">2011-03-11T18:47:42Z</created_at>
+ <hosted_login_token>d79a716084764737a1b1c6c677c94de8</hosted_login_token>
+ <created_at type="datetime">2011-03-18T18:47:50Z</created_at>
<state>active</state>
</account>
http_version: "1.1"
- !ruby/struct:VCR::HTTPInteraction
@@ -88,30 +85,28 @@
connection:
- close
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 200
- message: "OK "
+ message: OK
headers:
x-runtime:
- - "176"
+ - "286"
content-type:
- application/xml; charset=utf-8
etag:
- "\"dc04fba13f15d49d04ca6692abb21ff9\""
cache-control:
- private, max-age=0, must-revalidate
content-length:
- "1146"
- server:
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
- date:
- - Fri, 11 Mar 2011 18:47:45 GMT
+ set-cookie:
+ - _recurly_session=91967423955c434df3934d138e95ff6c; domain=.recurly.local; path=/; HttpOnly
connection:
- close
- set-cookie:
- - _recurly_session=c61f5e486a1525d50eea05e83fd1ff34; domain=.recurly.local; path=/; HttpOnly
+ server:
+ - thin 1.2.7 codename No Hup
body: |
<?xml version="1.0" encoding="UTF-8"?>
<plan>
<plan_code>paid</plan_code>
<name>Paid</name>
@@ -171,12 +166,12 @@
<accept-language type="yaml" nil="true"></accept-language>
<id>subscription-addons-remove-1297746103</id>
<username type="yaml" nil="true"></username>
<balance-in-cents type="integer">0</balance-in-cents>
<closed type="boolean">false</closed>
- <hosted-login-token>60d2c3798c2349618c2fa03ca4a5ccc7</hosted-login-token>
- <created-at type="datetime">2011-03-11T18:47:42Z</created-at>
+ <hosted-login-token>d79a716084764737a1b1c6c677c94de8</hosted-login-token>
+ <created-at type="datetime">2011-03-18T18:47:50Z</created-at>
<state>active</state>
</account>
<add-ons type="array">
<add-on>
<add-on-code>special</add-on-code>
@@ -198,32 +193,330 @@
- Ruby
connection:
- close
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
- code: 422
- message: ""
+ code: 500
+ message: Internal Server Error
headers:
cache-control:
- no-cache
- x-runtime:
- - "594"
content-type:
- - application/xml; charset=utf-8
+ - text/html; charset=utf-8
content-length:
- - "228"
- server:
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
- date:
- - Fri, 11 Mar 2011 18:47:47 GMT
+ - "19297"
+ set-cookie:
+ - _recurly_session=b0c1610b7ff3bf3905e575368148cdb0; domain=.recurly.local; path=/; HttpOnly
connection:
- close
- set-cookie:
- - _recurly_session=e347226e420cd72a77a49944fcc54882; domain=.recurly.local; path=/; HttpOnly
+ server:
+ - thin 1.2.7 codename No Hup
body: |
- <?xml version="1.0" encoding="UTF-8"?>
- <errors>
- <error field="subscriptions">Subscriptions is invalid</error>
- <error field="subscription_add_ons.add_on_id">Subscription add ons.add on Add On Code not found</error>
- </errors>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Action Controller: Exception caught</title>
+ <style>
+ body { background-color: #fff; color: #333; }
+
+ body, p, ol, ul, td {
+ font-family: verdana, arial, helvetica, sans-serif;
+ font-size: 13px;
+ line-height: 18px;
+ }
+
+ pre {
+ background-color: #eee;
+ padding: 10px;
+ font-size: 11px;
+ }
+
+ a { color: #000; }
+ a:visited { color: #666; }
+ a:hover { color: #fff; background-color:#000; }
+ </style>
+ </head>
+ <body>
+
+ <h1>
+ NoMethodError
+
+ in Accounts/subscriptionController#create
+
+ </h1>
+ <pre>You have a nil object when you didn't expect it!
+ You might have expected an instance of Array.
+ The error occurred while evaluating nil.slice</pre>
+
+
+
+ <p><code>RAILS_ROOT: /Users/isaac/Development/recurly/app</code></p>
+
+ <div id="traces">
+
+
+ <a href="#" onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';; return false;">Application Trace</a> |
+
+
+ <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';; return false;">Framework Trace</a> |
+
+
+ <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';; return false;">Full Trace</a>
+
+
+
+ <div id="Application-Trace" style="display: block;">
+ <pre><code>/Users/isaac/Development/recurly/app/app/api/subscription_api.rb:23:in `block in sanitize_params'
+ /Users/isaac/Development/recurly/app/app/api/subscription_api.rb:22:in `collect'
+ /Users/isaac/Development/recurly/app/app/api/subscription_api.rb:22:in `sanitize_params'
+ /Users/isaac/Development/recurly/app/app/controllers/accounts/subscription_controller.rb:250:in `init_account_and_billing_info'</code></pre>
+ </div>
+
+ <div id="Framework-Trace" style="display: none;">
+ <pre><code>/Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:178:in `evaluate_method'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:166:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:225:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:629:in `run_before_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:615:in `call_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
+ /Users/isaac/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:309:in `realtime'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `process'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:606:in `process_with_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/compass-0.10.6/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process_with_compass'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:391:in `process'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:386:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/routing/route_set.rb:438:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:87:in `dispatch'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:121:in `_call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:9:in `cache'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:28:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/haml-3.0.25/lib/sass/plugin/rack.rb:41:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/string_coercion.rb:25:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/params_parser.rb:15:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/session/abstract_store.rb:177:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/cache/strategy/local_cache.rb:25:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/hoptoad_notifier-2.4.6/lib/hoptoad_notifier/rack.rb:27:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/failsafe.rb:26:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/hoptoad_notifier-2.4.6/lib/hoptoad_notifier/user_informer.rb:12:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:114:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/reloader.rb:34:in `run'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:108:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/rack/fiber_pool.rb:19:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:48:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:48:in `block (3 levels) in initialize'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:47:in `loop'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:47:in `block (2 levels) in initialize'</code></pre>
+ </div>
+
+ <div id="Full-Trace" style="display: none;">
+ <pre><code>/Users/isaac/Development/recurly/app/app/api/subscription_api.rb:23:in `block in sanitize_params'
+ /Users/isaac/Development/recurly/app/app/api/subscription_api.rb:22:in `collect'
+ /Users/isaac/Development/recurly/app/app/api/subscription_api.rb:22:in `sanitize_params'
+ /Users/isaac/Development/recurly/app/app/controllers/accounts/subscription_controller.rb:250:in `init_account_and_billing_info'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:178:in `evaluate_method'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/callbacks.rb:166:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:225:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:629:in `run_before_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:615:in `call_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `block in ms'
+ /Users/isaac/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:309:in `realtime'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/core_ext/benchmark.rb:17:in `ms'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/flash.rb:151:in `perform_action_with_flash'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:532:in `process'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/filters.rb:606:in `process_with_filters'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/compass-0.10.6/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process_with_compass'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:391:in `process'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/base.rb:386:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/routing/route_set.rb:438:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:87:in `dispatch'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:121:in `_call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:29:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:9:in `cache'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/query_cache.rb:28:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/haml-3.0.25/lib/sass/plugin/rack.rb:41:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/string_coercion.rb:25:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/params_parser.rb:15:in `call'
+ /Users/isaac/Development/recurly/app/lib/xml_request_check.rb:10:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/session/abstract_store.rb:177:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/activesupport-2.3.11/lib/active_support/cache/strategy/local_cache.rb:25:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/hoptoad_notifier-2.4.6/lib/hoptoad_notifier/rack.rb:27:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/failsafe.rb:26:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/hoptoad_notifier-2.4.6/lib/hoptoad_notifier/user_informer.rb:12:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:114:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/reloader.rb:34:in `run'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/actionpack-2.3.11/lib/action_controller/dispatcher.rb:108:in `call'
+ /Users/isaac/Development/recurly/app/lib/rack_rails_check.rb:16:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/rack/fiber_pool.rb:19:in `block in call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:48:in `call'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:48:in `block (3 levels) in initialize'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:47:in `loop'
+ /Users/isaac/.rvm/gems/ruby-1.9.2-p0@recurly-app/gems/rack-fiber_pool-0.9.1/lib/fiber_pool.rb:47:in `block (2 levels) in initialize'</code></pre>
+ </div>
+
+ </div>
+
+
+
+
+
+
+ <h2 style="margin-top: 30px">Request</h2>
+ <p><b>Parameters</b>: <pre>{"subscription"=>{"plan_code"=>"paid",
+ "quantity"=>1,
+ "account"=>{"account_code"=>"subscription-addons-remove-1297746103",
+ "first_name"=>"Verena",
+ "last_name"=>"Test",
+ "email"=>"verena@test.com",
+ "company_name"=>"Recurly Ruby Gem",
+ "billing_info"=>{"first_name"=>"Verena",
+ "last_name"=>"Test",
+ "address1"=>"123 Test St",
+ "city"=>"San Francisco",
+ "state"=>"CA",
+ "zip"=>"94115",
+ "country"=>"US",
+ "credit_card"=>{"number"=>"4111111111111111",
+ "year"=>2012,
+ "month"=>3,
+ "verification_value"=>"123"}},
+ "accept_language"=>nil,
+ "id"=>"subscription-addons-remove-1297746103",
+ "username"=>nil,
+ "balance_in_cents"=>0,
+ "closed"=>false,
+ "hosted_login_token"=>"d79a716084764737a1b1c6c677c94de8",
+ "created_at"=>2011-03-18 18:47:50 UTC,
+ "state"=>"active"},
+ "add_ons"=>[{"add_on_code"=>"special",
+ "quantity"=>1,
+ "unit_amount"=>1000}],
+ "addons"=>[]},
+ "account_id"=>"subscription-addons-remove-1297746103",
+ "format"=>"xml"}</pre></p>
+
+ <p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
+ <div id="session_dump" style="display:none"><pre class='debug_dump'>---
+ </pre></div>
+
+
+ <h2 style="margin-top: 30px">Response</h2>
+ <p><b>Headers</b>: <pre>{"Cache-Control"=>"no-cache",
+ "Content-Type"=>""}</pre></p>
+
+
+
+ </body>
+ </html><script type="text/javascript">
+ var Hoptoad = {
+ host : "hoptoadapp.com",
+ api_key : "2de5471006eea4f5e5711302a6d2c4fc",
+ notice : {"action":"create","component":"accounts/subscription","error_class":"NoMethodError","environment_name":"production","file":"[PROJECT_ROOT]/app/api/subscription_api.rb","line_number":"23"},
+ message : 'This error exists in production!',
+
+ initialize: function() {
+ if (this.initialized) {
+ return;
+ } else {
+ this.initialized = true;
+ }
+
+ var data = [];
+
+ for (var key in this.notice) {
+ data[data.length] = 'notice[' + key + ']=' + this.notice[key];
+ }
+
+ data[data.length] = 'notice[api_key]=' + this.api_key;
+ data[data.length] = 'callback=Hoptoad.onSuccess';
+ data[data.length] = '_=' + (new Date()).getTime();
+
+ var head = document.getElementsByTagName('head')[0];
+ var done = false;
+
+ var
+ script = document.createElement('script');
+ script.src = 'http://' + this.host + '/notices_api/v1/notices/exist?' +
+ data.join('&');
+ script.type = 'text/javascript';
+ script.onload = script.onreadystatechange = function(){
+ if (!done && (!this.readyState ||
+ this.readyState == 'loaded' || this.readyState == 'complete')) {
+
+ done = true;
+
+ // Handle memory leak in IE. (via jQuery)
+ script.onload = script.onreadystatechange = null;
+ head.removeChild(script);
+ }
+ };
+
+ head.appendChild(script);
+ },
+
+ onSuccess: function(error) {
+ var body = document.getElementsByTagName('body')[0];
+ var text = document.createTextNode(this.message);
+ var element = document.createElement('a');
+
+ element.id = 'hoptoad';
+ element.href = 'http://' + error.subdomain + '.' + this.host +
+ '/projects/' + error.project_id + '/errors/' + error.id;
+ element.appendChild(text);
+
+ body.insertBefore(element, body.firstChild);
+
+ var h1 = document.getElementsByTagName('h1')[0];
+ var pre = document.getElementsByTagName('pre')[0];
+ var wrapper = document.createElement('div');
+
+ wrapper.id = 'wrapper';
+ wrapper.appendChild(h1);
+ wrapper.appendChild(pre);
+
+ body.insertBefore(wrapper, body.children[1]);
+ }
+ };
+
+ window.onload = function() {
+ Hoptoad.initialize.apply(Hoptoad);
+ };
+ </script>
+
+ <style type="text/css">
+ #hoptoad {
+ background: #FFF url(http://hoptoadapp.com/images/fell-off-the-toad.gif) no-repeat top right;
+ color: #F00;
+ padding: 45px 101px 45px 12px;
+ font-size: 14px;
+ font-weight: bold;
+ display: block;
+ float: right;
+ }
+
+ #wrapper {
+ padding-right: 360px;
+ }
+ </style>
http_version: "1.1"