{"action":"created","issue":{"url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/274","repository_url":"https://api.github.com/repos/recurly/recurly-client-ruby","labels_url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/274/comments","events_url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/274/events","html_url":"https://github.com/recurly/recurly-client-ruby/issues/274","id":186286333,"number":274,"title":"\"SystemStackError: stack level too deep\" when calling \"as_json\" on Recurly::Account object","user":{"login":"vrul","id":8102471,"avatar_url":"https://avatars.githubusercontent.com/u/8102471?v=3","gravatar_id":"","url":"https://api.github.com/users/vrul","html_url":"https://github.com/vrul","followers_url":"https://api.github.com/users/vrul/followers","following_url":"https://api.github.com/users/vrul/following{/other_user}","gists_url":"https://api.github.com/users/vrul/gists{/gist_id}","starred_url":"https://api.github.com/users/vrul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrul/subscriptions","organizations_url":"https://api.github.com/users/vrul/orgs","repos_url":"https://api.github.com/users/vrul/repos","events_url":"https://api.github.com/users/vrul/events{/privacy}","received_events_url":"https://api.github.com/users/vrul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"assignees":[{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-31T13:43:41Z","updated_at":"2016-10-31T22:12:03Z","closed_at":null,"body":"Hi guys, we are getting `SystemStackError` when trying to call method `as_json` on `Recurly::Account` object, eg\r\n```\r\nRecurly::Account.find('development_user_1').as_json\r\n```\r\nThe server log is next:\r\n```\r\nStarted GET \"/\" for IP at 2016-10-24 14:59:23 +0000\r\nProcessing by HomeController#show as HTML\r\n===> GET https://api.recurly.com/v2/accounts/production_user_id\r\n<=== 200 OK (404.8ms)\r\n===> GET https://api.recurly.com/v2/accounts/production_user_id/subscriptions\r\n<=== 200 OK (158.4ms)\r\n===> GET https://api.recurly.com/v2/accounts/production_user_id/adjustments\r\n<=== 200 OK (422.9ms)\r\nCompleted 500 Internal Server Error in 1415ms (ActiveRecord: 14.1ms)\r\n** [Airbrake] Success: Net::HTTPOK\r\n\r\nSystemStackError (stack level too deep):\r\n  newrelic_rpm (3.15.0.314) lib/new_relic/agent/instrumentation/middleware_tracing.rb:106\r\n```\r\nIs this something to do with API on your side? Please, let us know if you need further info\r\n\r\nSome environment info:\r\n```\r\n$ ruby -v\r\nruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]\r\n$ rails -v\r\nRails 4.2.7.1\r\n$ bundle show recurly\r\n/home/ubuntu/.rvm/gems/ruby-2.1.2@xxx/bundler/gems/recurly-client-ruby-d63f1f2dce72\r\n```"},"comment":{"url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/comments/257436038","html_url":"https://github.com/recurly/recurly-client-ruby/issues/274#issuecomment-257436038","issue_url":"https://api.github.com/repos/recurly/recurly-client-ruby/issues/274","id":257436038,"user":{"login":"vrul","id":8102471,"avatar_url":"https://avatars.githubusercontent.com/u/8102471?v=3","gravatar_id":"","url":"https://api.github.com/users/vrul","html_url":"https://github.com/vrul","followers_url":"https://api.github.com/users/vrul/followers","following_url":"https://api.github.com/users/vrul/following{/other_user}","gists_url":"https://api.github.com/users/vrul/gists{/gist_id}","starred_url":"https://api.github.com/users/vrul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrul/subscriptions","organizations_url":"https://api.github.com/users/vrul/orgs","repos_url":"https://api.github.com/users/vrul/repos","events_url":"https://api.github.com/users/vrul/events{/privacy}","received_events_url":"https://api.github.com/users/vrul/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T22:12:03Z","updated_at":"2016-10-31T22:12:03Z","body":"just wondering why it fails only on `Recurly::Account`, not on `Recurly::Plan` objects?"}}
{"actor":{"display_login":"vrul"}}