Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33689

com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi.

      On March 20th uploading to Google Play has consistently started failing with the error
      org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error

      { "code" : 500, "message" : null }

      at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34)

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Oops, sorry that I missed this issue when it was posted.

          But as you've probably seen from using the plugin (and perhaps from other bug reports), the Google Play API likes to sometimes randomly throw generic server errors which go away after a few hours.

          Hopefully you tried again later and saw that the API started working again.

          I've added a note about this type of server error to the troubleshooting guide on this plugin's wiki page.

          Show
          orrc Christopher Orr added a comment - Oops, sorry that I missed this issue when it was posted. But as you've probably seen from using the plugin (and perhaps from other bug reports), the Google Play API likes to sometimes randomly throw generic server errors which go away after a few hours. Hopefully you tried again later and saw that the API started working again. I've added a note about this type of server error to the troubleshooting guide on this plugin's wiki page.
          Hide
          skjalg Skjalg Mæhre added a comment -

          Hi. Its still not working, so its not one of those random generic server errors.

          But I have one new piece of information. If I revert back to the version before it started failing, then it uploads fine (if we just take that version and increase the version number, that is). I haven't had the time to investigate further, but will report back when I do.

          Show
          skjalg Skjalg Mæhre added a comment - Hi. Its still not working, so its not one of those random generic server errors. But I have one new piece of information. If I revert back to the version before it started failing, then it uploads fine (if we just take that version and increase the version number, that is). I haven't had the time to investigate further, but will report back when I do.
          Hide
          orrc Christopher Orr added a comment -

          Skjalg Mæhre: Thanks for the update!

          That sucks that it's consistently broken for you, but in that case I would definitely encourage you to get in touch with Google Play Developer Support — if it's always broken for certain APKs, then they should really fix their API…

          https://support.google.com/googleplay/android-developer/contact/publishing?extra.IssueType=submitting&hl=en&ec=publish&cfsi=publish_cf&cfnti=escalationflow.email&cft=3&rd=1

          Show
          orrc Christopher Orr added a comment - Skjalg Mæhre : Thanks for the update! That sucks that it's consistently broken for you, but in that case I would definitely encourage you to get in touch with Google Play Developer Support — if it's always broken for certain APKs, then they should really fix their API… https://support.google.com/googleplay/android-developer/contact/publishing?extra.IssueType=submitting&hl=en&ec=publish&cfsi=publish_cf&cfnti=escalationflow.email&cft=3&rd=1
          Hide
          ssnvgirish Girish Venkata added a comment -

          Hi I am getting below error continuously while uploading apk to play store. Its a Xamarin Cross platform app.

          Uploading 1 APK(s) with application ID: com.company.appName
          APK file: com.company.appName\com.company.appName.Droid\bin\Release\com.company.appName-Released.apk
          SHA-1 hash: e0a6e9f43993181222b65fc14044be49601f3787
          versionCode: 13
          minSdkVersion: 15

          Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
          {
          "code" : 500,
          "message" : null
          }
          at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to xxx-xxx-xxx(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:252)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.FilePath.act(FilePath.java:1074)
          at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:303)
          at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
          {
          "code" : 500,
          "message" : null
          }
          at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
          at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
          at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:423)
          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
          at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:109)
          at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:34)
          at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:31)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)

          • No changes have been applied to the Google Play account
            Build step 'Upload Android APK to Google Play' marked build as failure
          Show
          ssnvgirish Girish Venkata added a comment - Hi I am getting below error continuously while uploading apk to play store. Its a Xamarin Cross platform app. Uploading 1 APK(s) with application ID: com.company.appName APK file: com.company.appName\com.company.appName.Droid\bin\Release\com.company.appName-Released.apk SHA-1 hash: e0a6e9f43993181222b65fc14044be49601f3787 versionCode: 13 minSdkVersion: 15 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error { "code" : 500, "message" : null } at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:62) at java.lang.Thread.run(Unknown Source) at ......remote call to xxx-xxx-xxx(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416) at hudson.remoting.UserResponse.retrieve(UserRequest.java:252) at hudson.remoting.Channel.call(Channel.java:781) at hudson.FilePath.act(FilePath.java:1074) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:303) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error { "code" : 500, "message" : null } at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:423) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:109) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:34) at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:31) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:62) at java.lang.Thread.run(Unknown Source) No changes have been applied to the Google Play account Build step 'Upload Android APK to Google Play' marked build as failure
          Hide
          orrc Christopher Orr added a comment -

          Girish Venkata: This is an issue listed on the plugin page: https://plugins.jenkins.io/google-play-android-publisher#GooglePlayAndroidPublisherPlugin-GoogleJsonResponseException:500InternalServerError

          If the Google Play API is throwing errors, there's not much that the plugin can do about this.

          Show
          orrc Christopher Orr added a comment - Girish Venkata : This is an issue listed on the plugin page: https://plugins.jenkins.io/google-play-android-publisher#GooglePlayAndroidPublisherPlugin-GoogleJsonResponseException:500InternalServerError If the Google Play API is throwing errors, there's not much that the plugin can do about this.
          Hide
          ssnvgirish Girish Venkata added a comment -

          Christopher Orr First of all thanks for the reply.

          I know and contacted google play as well but they said it is problem with Jenkins. I am trying to solve this issues form past few days. Is there any workaround that could help?

          Show
          ssnvgirish Girish Venkata added a comment - Christopher Orr First of all thanks for the reply. I know and contacted google play as well but they said it is problem with Jenkins. I am trying to solve this issues form past few days. Is there any workaround that could help?
          Hide
          orrc Christopher Orr added a comment -

          Girish Venkata: Did you get any more details from Google? Does it always happen with the same APKs? Has it happened before?

          Like I mentioned, if the Google Play API is returning a 500 Internal Server error, that's an error on their side.  The Jenkins plugin is using the API library provided by Google.  I haven't upgraded it in a long time, but their API also hasn't changed.

          All I can suggest right now is to keep retrying periodically, and asking developer support again, and asking for more details.

          Show
          orrc Christopher Orr added a comment - Girish Venkata : Did you get any more details from Google? Does it always happen with the same APKs? Has it happened before? Like I mentioned, if the Google Play API is returning a 500 Internal Server error, that's an error on their side.  The Jenkins plugin is using the API library provided by Google.  I haven't upgraded it in a long time, but their API also hasn't changed. All I can suggest right now is to keep retrying periodically, and asking developer support again, and asking for more details.
          Hide
          ssnvgirish Girish Venkata added a comment - - edited

          Christopher Orr i changed my min sdk version to 18 and it worked.. no idea why it did not work for below version. Will update if i get to know the reason.

          Thanks for the reply

          Show
          ssnvgirish Girish Venkata added a comment - - edited Christopher Orr i changed my min sdk version to 18 and it worked.. no idea why it did not work for below version. Will update if i get to know the reason. Thanks for the reply

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              skjalg Skjalg Mæhre
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: