{"action":"closed","issue":{"url":"https://api.github.com/repos/braintree/braintree_ruby/issues/104","labels_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/104/comments","events_url":"https://api.github.com/repos/braintree/braintree_ruby/issues/104/events","html_url":"https://github.com/braintree/braintree_ruby/issues/104","id":121790356,"number":104,"title":"subscription update raising NotFoundError (sandbox)","user":{"login":"murtyk","id":2120154,"avatar_url":"https://avatars.githubusercontent.com/u/2120154?v=3","gravatar_id":"","url":"https://api.github.com/users/murtyk","html_url":"https://github.com/murtyk","followers_url":"https://api.github.com/users/murtyk/followers","following_url":"https://api.github.com/users/murtyk/following{/other_user}","gists_url":"https://api.github.com/users/murtyk/gists{/gist_id}","starred_url":"https://api.github.com/users/murtyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murtyk/subscriptions","organizations_url":"https://api.github.com/users/murtyk/orgs","repos_url":"https://api.github.com/users/murtyk/repos","events_url":"https://api.github.com/users/murtyk/events{/privacy}","received_events_url":"https://api.github.com/users/murtyk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T20:58:46Z","updated_at":"2015-12-14T22:07:05Z","closed_at":"2015-12-14T22:07:05Z","body":"[development] [2] Vydia(main)> def simple_update(id)\r\n[development] [2] Vydia(main)*   result = Braintree::Subscription.update(  \r\n[development] [2] Vydia(main)*     id, # id of subscription to update    \r\n[development] [2] Vydia(main)*     :payment_method_token => \"fake-valid-nonce\"    \r\n[development] [2] Vydia(main)*   )    \r\n[development] [2] Vydia(main)* end  \r\n=> :simple_update\r\n[development] [3] Vydia(main)> result = simple_update(sub.id)\r\nD, [2015-12-11T20:46:12.558506 #28801] DEBUG -- : [httplog] Connecting: api.sandbox.braintreegateway.com:443\r\nD, [2015-12-11T20:46:12.802264 #28801] DEBUG -- : [httplog] Sending: PUT http://api.sandbox.braintreegateway.com:443/merchants/bss316yxzp7wg9sd/subscriptions/752v2m\r\nD, [2015-12-11T20:46:12.802728 #28801] DEBUG -- : [httplog] Data: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<subscription>\r\n  <payment-method-token>fake-valid-nonce</payment-method-token>\r\n</subscription>\r\n\r\nD, [2015-12-11T20:46:13.052371 #28801] DEBUG -- : [httplog] Status: 404\r\nD, [2015-12-11T20:46:13.052821 #28801] DEBUG -- : [httplog] Benchmark: 0.24797862 seconds\r\nD, [2015-12-11T20:46:13.053197 #28801] DEBUG -- : [httplog] Response: (deflated)\r\n\r\nI, [2015-12-11T20:46:13.054127 #28801]  INFO -- : [Braintree] [11/Dec/2015 20:46:13 UTC] PUT /merchants/bss316yxzp7wg9sd/subscriptions/752v2m 404\r\nBraintree::NotFoundError: Braintree::NotFoundError\r\nfrom /var/lib/gems/2.1.0/gems/braintree-2.56.0/lib/braintree/util.rb:55:in `raise_exception_for_status_code'\r\n[development] [4] Vydia(main)> sub.class\r\n=> Braintree::Subscription\r\n[development] [5] Vydia(main)> sub.id\r\n=> \"752v2m\""}}