{"action":"opened","issue":{"url":"https://api.github.com/repos/datanoise/ssh2.cr/issues/1","labels_url":"https://api.github.com/repos/datanoise/ssh2.cr/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/datanoise/ssh2.cr/issues/1/comments","events_url":"https://api.github.com/repos/datanoise/ssh2.cr/issues/1/events","html_url":"https://github.com/datanoise/ssh2.cr/issues/1","id":124678753,"number":1,"title":"Wrong number of arguments raised when logging in with agent.","user":{"login":"meskyanichi","id":54708,"avatar_url":"https://avatars.githubusercontent.com/u/54708?v=3","gravatar_id":"","url":"https://api.github.com/users/meskyanichi","html_url":"https://github.com/meskyanichi","followers_url":"https://api.github.com/users/meskyanichi/followers","following_url":"https://api.github.com/users/meskyanichi/following{/other_user}","gists_url":"https://api.github.com/users/meskyanichi/gists{/gist_id}","starred_url":"https://api.github.com/users/meskyanichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskyanichi/subscriptions","organizations_url":"https://api.github.com/users/meskyanichi/orgs","repos_url":"https://api.github.com/users/meskyanichi/repos","events_url":"https://api.github.com/users/meskyanichi/events{/privacy}","received_events_url":"https://api.github.com/users/meskyanichi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-03T23:40:21Z","updated_at":"2016-01-03T23:40:21Z","closed_at":null,"body":"```crystal\r\nSSH2::Session.open(\"repositories.example.com\") do |session|\r\n  session.login_with_agent(\"git\")\r\n  session.open_session do |channel|\r\n    channel.command(\"ls -la\")\r\n    IO.copy(channel, STDOUT)\r\n  end\r\nend\r\n```\r\n\r\n```\r\nError in ./src/pgit.cr:9: instantiating 'SSH2::Session:Class#open(String)'\r\n\r\nSSH2::Session.open(\"repositories.example.com\") do |session|\r\n              ^~~~\r\n\r\nin ./libs/ssh2/session.cr:12: instantiating 'TCPSocket:Class#open(String, Int32)'\r\n\r\n    TCPSocket.open(host, port) do |socket|\r\n              ^~~~\r\n\r\nin ./libs/ssh2/session.cr:12: instantiating 'TCPSocket:Class#open(String, Int32)'\r\n\r\n    TCPSocket.open(host, port) do |socket|\r\n              ^~~~\r\n\r\nin ./src/pgit.cr:9: instantiating 'SSH2::Session:Class#open(String)'\r\n\r\nSSH2::Session.open(\"repositories.example.com\") do |session|\r\n              ^~~~\r\n\r\nin ./src/pgit.cr:11: instantiating 'SSH2::Session#login_with_agent(String)'\r\n\r\n  session.login_with_agent(\"git\")\r\n          ^~~~~~~~~~~~~~~~\r\n\r\nin ./libs/ssh2/session.cr:56: instantiating 'SSH2::Agent#connect()'\r\n\r\n    agent.connect\r\n          ^~~~~~~\r\n\r\nin ./libs/ssh2/agent.cr:20: instantiating 'check_error(Int32)'\r\n\r\n    check_error(ret)\r\n    ^~~~~~~~~~~\r\n\r\nin ./libs/ssh2/agent.cr:71: wrong number of arguments for 'SSH2::SessionError::check_error' (1 for 2)\r\nOverloads are:\r\n - SSH2::SessionError::check_error(session, code)\r\n\r\n    SessionError.check_error(code)\r\n```"}}