{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-ruby-client/issues/140","labels_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/140/comments","events_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/140/events","html_url":"https://github.com/google/google-api-ruby-client/issues/140","id":39045860,"number":140,"title":"Uploading APKs with the new androidpublisher V2 api fails with a 500 error","user":{"login":"johnhamelink","id":101739,"avatar_url":"https://avatars.githubusercontent.com/u/101739?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhamelink","html_url":"https://github.com/johnhamelink","followers_url":"https://api.github.com/users/johnhamelink/followers","following_url":"https://api.github.com/users/johnhamelink/following{/other_user}","gists_url":"https://api.github.com/users/johnhamelink/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhamelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhamelink/subscriptions","organizations_url":"https://api.github.com/users/johnhamelink/orgs","repos_url":"https://api.github.com/users/johnhamelink/repos","events_url":"https://api.github.com/users/johnhamelink/events{/privacy}","received_events_url":"https://api.github.com/users/johnhamelink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-29T23:13:51Z","updated_at":"2015-09-14T21:21:37Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm new to Google's ruby API client. I'm trying to implement an \"APK Pusher\" in ruby for my CI system (hopefully I'll open source the project and put it on Github for others to enjoy). \r\n\r\n\r\nI've been following the work done in the Python Examples ([here](https://github.com/googlesamples/android-play-publisher-api/blob/master/v2/python/basic_upload_apks.py)).\r\n\r\nI've managed to sign in with my p12 key and insert a new edit against the APK's packagename, but when I attempt to Upload the APK I get this:\r\n\r\n    #<Google::APIClient::Schema::Androidpublisher::V2::Apk:0x1f9931c DATA:{\"error\"=>{\"code\"=>500, \"message\"=>nil}}>\r\n\r\nMy apk uploading code looks like this:\r\n\r\n     apk_response = client.execute(\r\n       api_method: service.edits.apks.upload,\r\n       parameters: {\r\n         'editId'      => edit_request.data['id'],\r\n         'packageName' => \"com.farmgeek.agricountantdemo.app\"\r\n       },\r\n       media: Google::APIClient::UploadIO.new(file, 'application/vnd.android.package-archive')\r\n     )\r\n\r\nWhere file is a pathname and edit_request is the variable storing the inserted edit.\r\n\r\nAny help would be very much appreciated!"},"comment":{"url":"https://api.github.com/repos/google/google-api-ruby-client/issues/comments/140209294","html_url":"https://github.com/google/google-api-ruby-client/issues/140#issuecomment-140209294","issue_url":"https://api.github.com/repos/google/google-api-ruby-client/issues/140","id":140209294,"user":{"login":"nofxx","id":6831,"avatar_url":"https://avatars.githubusercontent.com/u/6831?v=3","gravatar_id":"","url":"https://api.github.com/users/nofxx","html_url":"https://github.com/nofxx","followers_url":"https://api.github.com/users/nofxx/followers","following_url":"https://api.github.com/users/nofxx/following{/other_user}","gists_url":"https://api.github.com/users/nofxx/gists{/gist_id}","starred_url":"https://api.github.com/users/nofxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nofxx/subscriptions","organizations_url":"https://api.github.com/users/nofxx/orgs","repos_url":"https://api.github.com/users/nofxx/repos","events_url":"https://api.github.com/users/nofxx/events{/privacy}","received_events_url":"https://api.github.com/users/nofxx/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T21:21:37Z","updated_at":"2015-09-14T21:21:37Z","body":"@johnhamelink Hello John. Did it worked out?\r\nLooking for a solution to upload apks. \r\nWhat a monkey job browse/login/upload is."}}