{"action":"created","issue":{"url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/24","repository_url":"https://api.github.com/repos/DripEmail/drip-ruby","labels_url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/24/comments","events_url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/24/events","html_url":"https://github.com/DripEmail/drip-ruby/issues/24","id":209887389,"number":24,"title":"NoMethodError on 429 Response","user":{"login":"subakva","id":10962,"avatar_url":"https://avatars.githubusercontent.com/u/10962?v=3","gravatar_id":"","url":"https://api.github.com/users/subakva","html_url":"https://github.com/subakva","followers_url":"https://api.github.com/users/subakva/followers","following_url":"https://api.github.com/users/subakva/following{/other_user}","gists_url":"https://api.github.com/users/subakva/gists{/gist_id}","starred_url":"https://api.github.com/users/subakva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subakva/subscriptions","organizations_url":"https://api.github.com/users/subakva/orgs","repos_url":"https://api.github.com/users/subakva/repos","events_url":"https://api.github.com/users/subakva/events{/privacy}","received_events_url":"https://api.github.com/users/subakva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T21:20:15Z","updated_at":"2017-02-23T21:32:14Z","closed_at":null,"body":"When the rate limit is exceeded, the drip API server responds with this content:\r\n\r\n```\r\n{\"message\":\"API rate limit exceeded. Please try again in an hour.\"}\r\n```\r\n\r\nWhen the client library tries to create a resource from the response, it causes a NoMethodError:\r\n\r\n```\r\nNoMethodError: undefined method `keys' for \"API rate limit exceeded. Please try again in an hour.\":String\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/resource.rb\" line 32 in block in process\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/resource.rb\" line 31 in tap\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/resource.rb\" line 31 in process\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/resource.rb\" line 9 in initialize\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 56 in new\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 56 in block (2 levels) in parse_members\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 49 in each\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 49 in block in parse_members\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 47 in tap\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 47 in parse_members\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/response.rb\" line 13 in initialize\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/client.rb\" line 70 in new\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/client.rb\" line 70 in build_response\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/client.rb\" line 55 in make_request\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/client.rb\" line 43 in post\r\nFile \"/app/vendor/bundle/ruby/2.3.0/gems/drip-ruby-0.0.10/lib/drip/client/subscribers.rb\" line 69 in create_or_update_subscribers\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/comments/282127816","html_url":"https://github.com/DripEmail/drip-ruby/issues/24#issuecomment-282127816","issue_url":"https://api.github.com/repos/DripEmail/drip-ruby/issues/24","id":282127816,"user":{"login":"djreimer","id":341387,"avatar_url":"https://avatars.githubusercontent.com/u/341387?v=3","gravatar_id":"","url":"https://api.github.com/users/djreimer","html_url":"https://github.com/djreimer","followers_url":"https://api.github.com/users/djreimer/followers","following_url":"https://api.github.com/users/djreimer/following{/other_user}","gists_url":"https://api.github.com/users/djreimer/gists{/gist_id}","starred_url":"https://api.github.com/users/djreimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djreimer/subscriptions","organizations_url":"https://api.github.com/users/djreimer/orgs","repos_url":"https://api.github.com/users/djreimer/repos","events_url":"https://api.github.com/users/djreimer/events{/privacy}","received_events_url":"https://api.github.com/users/djreimer/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T21:32:14Z","updated_at":"2017-02-23T21:32:14Z","body":"Thanks for reporting! Will look into a fix."}}
{"actor":{"display_login":"djreimer"}}