{"action":"created","issue":{"url":"https://api.github.com/repos/remyferre/octokit-issues/issues/9","labels_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/9/comments","events_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/9/events","html_url":"https://github.com/remyferre/octokit-issues/issues/9","id":97718926,"number":9,"title":"`concat_without_safety': can't convert Hash into String (TypeError)","user":{"login":"remyferre","id":4510210,"avatar_url":"https://avatars.githubusercontent.com/u/4510210?v=3","gravatar_id":"","url":"https://api.github.com/users/remyferre","html_url":"https://github.com/remyferre","followers_url":"https://api.github.com/users/remyferre/followers","following_url":"https://api.github.com/users/remyferre/following{/other_user}","gists_url":"https://api.github.com/users/remyferre/gists{/gist_id}","starred_url":"https://api.github.com/users/remyferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remyferre/subscriptions","organizations_url":"https://api.github.com/users/remyferre/orgs","repos_url":"https://api.github.com/users/remyferre/repos","events_url":"https://api.github.com/users/remyferre/events{/privacy}","received_events_url":"https://api.github.com/users/remyferre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-28T14:24:17Z","updated_at":"2015-07-28T14:24:25Z","closed_at":null,"body":"<a href=https://github.com/jamtur01>  <img src=https://avatars.githubusercontent.com/u/4365?v=3 align=left width=48 height=48 hspace=10></img></a> **Issue by [jamtur01](https://github.com/jamtur01)**\n_14/04/2011 at 05:06PM_\n\n\n ---- \n\n\nI have some code to add a comment to a pull request:\r\n\r\n    comment = \"blah\"\r\n    number = \"2\"\r\n    @gh_client = Octokit::Client.new(:login => @gh_user, :token => @gh_token)\r\n    @gh_client.add_comment({:username => @gh_org, :repository => repo}, number, comment)\r\n\r\nThe pull request exists and the auth succeeds but it's returning the following error:\r\n\r\n/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `concat_without_safety': can't convert Hash into String (TypeError)\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `<<'\r\n\tfrom /usr/lib/ruby/1.8/openssl/buffering.rb:171:in `do_write'\r\n\tfrom /usr/lib/ruby/1.8/openssl/buffering.rb:193:in `write'\r\n\tfrom /usr/lib/ruby/1.8/net/protocol.rb:177:in `write0'\r\n\tfrom /usr/lib/ruby/1.8/net/protocol.rb:153:in `write'\r\n\tfrom /usr/lib/ruby/1.8/net/protocol.rb:168:in `writing'\r\n\tfrom /usr/lib/ruby/1.8/net/protocol.rb:152:in `write'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:1548:in `send_request_with_body'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:1533:in `exec'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:1049:in `request'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:1037:in `request'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:543:in `start'\r\n\tfrom /usr/lib/ruby/1.8/net/http.rb:1035:in `request'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/adapter/net_http.rb:50:in `call'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/response.rb:8:in `call'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/request.rb:88:in `run'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/request.rb:28:in `run'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/connection.rb:170:in `run_request'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/faraday-0.6.0/lib/faraday/connection.rb:69:in `post'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/octokit-0.6.1/lib/octokit/client/request.rb:23:in `send'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/octokit-0.6.1/lib/octokit/client/request.rb:23:in `request'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/octokit-0.6.1/lib/octokit/client/request.rb:9:in `post'\r\n\tfrom /usr/lib/ruby/gems/1.8/gems/octokit-0.6.1/lib/octokit/client/issues.rb:56:in `add_comment'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:101:in `close_pull_request'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:90:in `open_redmine_ticket'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:64:in `get_pull_requests'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:55:in `each'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:55:in `get_pull_requests'\r\n\tfrom /home/james/src/ghostred/lib/ghostred.rb:22:in `run'\r\n\tfrom bin/ghostred:84\r\n\r\nAny ideas? I am bit stuck.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/remyferre/octokit-issues/issues/comments/125626198","html_url":"https://github.com/remyferre/octokit-issues/issues/9#issuecomment-125626198","issue_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/9","id":125626198,"user":{"login":"remyferre","id":4510210,"avatar_url":"https://avatars.githubusercontent.com/u/4510210?v=3","gravatar_id":"","url":"https://api.github.com/users/remyferre","html_url":"https://github.com/remyferre","followers_url":"https://api.github.com/users/remyferre/followers","following_url":"https://api.github.com/users/remyferre/following{/other_user}","gists_url":"https://api.github.com/users/remyferre/gists{/gist_id}","starred_url":"https://api.github.com/users/remyferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remyferre/subscriptions","organizations_url":"https://api.github.com/users/remyferre/orgs","repos_url":"https://api.github.com/users/remyferre/repos","events_url":"https://api.github.com/users/remyferre/events{/privacy}","received_events_url":"https://api.github.com/users/remyferre/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T14:24:25Z","updated_at":"2015-07-28T14:24:25Z","body":"<a href=https://github.com/jamtur01>  <img src=https://avatars.githubusercontent.com/u/4365?v=3 align=left width=48 height=48 hspace=10></img></a> **Comment by [jamtur01](https://github.com/jamtur01)**\n_29/04/2011 at 12:52AM_\n\n\n ---- \n\n\nBlast hit enter too soon.  Ruby is ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-linux] on Fedora 14.  "}}