{"action":"created","issue":{"url":"https://api.github.com/repos/arsduo/koala/issues/539","repository_url":"https://api.github.com/repos/arsduo/koala","labels_url":"https://api.github.com/repos/arsduo/koala/issues/539/labels{/name}","comments_url":"https://api.github.com/repos/arsduo/koala/issues/539/comments","events_url":"https://api.github.com/repos/arsduo/koala/issues/539/events","html_url":"https://github.com/arsduo/koala/issues/539","id":170059431,"number":539,"title":"batch request - undefined method `code' for nil:NilClass","user":{"login":"faustoct","id":3135444,"avatar_url":"https://avatars3.githubusercontent.com/u/3135444?v=3","gravatar_id":"","url":"https://api.github.com/users/faustoct","html_url":"https://github.com/faustoct","followers_url":"https://api.github.com/users/faustoct/followers","following_url":"https://api.github.com/users/faustoct/following{/other_user}","gists_url":"https://api.github.com/users/faustoct/gists{/gist_id}","starred_url":"https://api.github.com/users/faustoct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faustoct/subscriptions","organizations_url":"https://api.github.com/users/faustoct/orgs","repos_url":"https://api.github.com/users/faustoct/repos","events_url":"https://api.github.com/users/faustoct/events{/privacy}","received_events_url":"https://api.github.com/users/faustoct/received_events","type":"User","site_admin":false},"labels":[{"id":243355830,"url":"https://api.github.com/repos/arsduo/koala/labels/More%20Info%20Needed","name":"More Info Needed","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-09T00:58:26Z","updated_at":"2017-03-08T03:34:24Z","closed_at":"2017-03-08T03:34:24Z","body":"It was working fine but stopped suddenly\n\nI tried perform this\n\n```\naccess_token = RestClient.get(\"https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=client_id_here&client_secret=secret_id_here\")\ntoken = access_token.split(\"=\")[1]\ngraph = Koala::Facebook::API.new(token)\ngraph.batch do |batch_api|\nbatch_api.get_connections(\"111090485635468\", \"photos?fields=link,created_time,name,images,source,from&limit=1&type=uploaded\")\nend\n```\n\nStacktrace\n\n```\nNoMethodError: undefined method `code' for nil:NilClass\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:16:in `code'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/rest-client-2.0.0/lib/restclient/response.rb:38:in `inspect'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/http_service.rb:117:in `inspect'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/http_service.rb:117:in `make_request'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala.rb:64:in `make_request'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/api.rb:74:in `api'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/api/graph_api.rb:527:in `graph_call'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/api/graph_batch_api.rb:52:in `execute'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/koala-2.4.0/lib/koala/api/graph_api.rb:501:in `batch'\n    from (irb):4\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/padrino-core-0.13.2/lib/padrino-core/cli/base.rb:40:in `console'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/gems/padrino-core-0.13.2/bin/padrino:8:in `<top (required)>'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/bin/padrino:22:in `load'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/bin/padrino:22:in `<main>'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'\n    from /Users/fausto/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'2.2.1 :007 \n```\n"},"comment":{"url":"https://api.github.com/repos/arsduo/koala/issues/comments/284936979","html_url":"https://github.com/arsduo/koala/issues/539#issuecomment-284936979","issue_url":"https://api.github.com/repos/arsduo/koala/issues/539","id":284936979,"user":{"login":"arsduo","id":48325,"avatar_url":"https://avatars2.githubusercontent.com/u/48325?v=3","gravatar_id":"","url":"https://api.github.com/users/arsduo","html_url":"https://github.com/arsduo","followers_url":"https://api.github.com/users/arsduo/followers","following_url":"https://api.github.com/users/arsduo/following{/other_user}","gists_url":"https://api.github.com/users/arsduo/gists{/gist_id}","starred_url":"https://api.github.com/users/arsduo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arsduo/subscriptions","organizations_url":"https://api.github.com/users/arsduo/orgs","repos_url":"https://api.github.com/users/arsduo/repos","events_url":"https://api.github.com/users/arsduo/events{/privacy}","received_events_url":"https://api.github.com/users/arsduo/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T03:34:24Z","updated_at":"2017-03-08T03:34:24Z","body":"Since it's been three weeks I'm going to close this, but if you are still having the issue, definitely reopen this or create a new issue with some samples of the raw data you get back from Facebook and I'll look into it. Thanks!"}}
{"actor":{"display_login":"arsduo"}}