{"action":"created","issue":{"url":"https://api.github.com/repos/remyferre/octokit-issues/issues/10","labels_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/10/comments","events_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/10/events","html_url":"https://github.com/remyferre/octokit-issues/issues/10","id":97719006,"number":10,"title":"can't run private commands","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":1,"created_at":"2015-07-28T14:24:46Z","updated_at":"2015-07-28T14:24:48Z","closed_at":null,"body":"<a href=https://github.com/mwotton>  <img src=https://avatars.githubusercontent.com/u/68482?v=3 align=left width=48 height=48 hspace=10></img></a> **Issue by [mwotton](https://github.com/mwotton)**\n_26/04/2011 at 02:01PM_\n\n\n ---- \n\n\nI'm trying to create a repo programmatically and not having much luck:\r\n\r\n>> o=Octokit::Client.new :login => 'mwotton', :token => token\r\n#<Octokit::Client:0xa54743c @adapter=:net_http, @endpoint=\"https://github.com/\", @format=:json, @login=\"mwotton\", @password=nil, @proxy=nil, @token=\"somethingelse\", @oauth_token=nil, @user_agent=\"Octokit Ruby Gem 0.6.1\", @version=2>\r\n>> o.create_repository \"ffff\"\r\nNoMethodError: undefined method `bytesize' for {:name=>\"ffff\"}:Hash\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1727:in `send_request_with_body'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1716:in `exec'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1181:in `transport_request'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1169:in `request'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1162:in `block in request'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:627:in `start'\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/lib/ruby/1.9.1/net/http.rb:1160:in `request'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/adapter/net_http.rb:51:in `call'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/response.rb:8:in `call'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/request.rb:88:in `run'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/request.rb:28:in `run'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/connection.rb:170:in `run_request'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/faraday-0.6.1/lib/faraday/connection.rb:69:in `post'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/octokit-0.6.1/lib/octokit/client/request.rb:23:in `request'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/octokit-0.6.1/lib/octokit/client/request.rb:9:in `post'\r\n\tfrom /home/mwotton/.rvm/gems/ruby-1.9.2-rc2/gems/octokit-0.6.1/lib/octokit/client/repositories.rb:40:in `create_repository'\r\n\tfrom (irb):18\r\n\tfrom /home/mwotton/.rvm/rubies/ruby-1.9.2-rc2/bin/irb:17:in `<main>'>> \r\n\r\nAm I just calling create_repo incorrectly?"},"comment":{"url":"https://api.github.com/repos/remyferre/octokit-issues/issues/comments/125626294","html_url":"https://github.com/remyferre/octokit-issues/issues/10#issuecomment-125626294","issue_url":"https://api.github.com/repos/remyferre/octokit-issues/issues/10","id":125626294,"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:48Z","updated_at":"2015-07-28T14:24:48Z","body":"<a href=https://github.com/pengwynn>  <img src=https://avatars.githubusercontent.com/u/865?v=3 align=left width=48 height=48 hspace=10></img></a> **Comment by [pengwynn](https://github.com/pengwynn)**\n_26/04/2011 at 05:04PM_\n\n\n ---- \n\n\nLooks like the fix has been applied to master, waiting on the next release. @sferik, anything holding up a new version?"}}