org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error { "code" : 500, "message" : null }

Jenkins JIRA | Skjalg Mæhre | 9 months ago
  1. 0

    [JENKINS-25398] Failure can be reported even when upload succeeded - Jenkins JIRA

    jenkins-ci.org | 1 month ago
    org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I got this report and the stacktrace below: "Some times when uploading apk’s (has happened 2 times now) the plugins thinks that upload failed. It then says that "No changes were applied to the Google Play account» but when checking in Google Play console, all apk’s were uploaded and published!" Essentially the Google Play Publishing API fails to respond in time, so we assume failure. Unfortunately from my testing, I've seen this a few times — timeouts or HTTP 500 server errors — even although the changes may have been applied. The API is not the most reliable. So we should handle this particular situation (i.e. a timeout while committing the edits) and inform the user that the build outcome is unknown. {noformat} Assigning uploaded APK(s) to alpha release track... The alpha release track will now contain the APK(s): 10040, 20045, 30043, 40044, 50041, 60042 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34) at hudson.FilePath.act(FilePath.java:1006) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) ... Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) ... at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410) 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:190) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:41) at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:31) ... 11 more - No changes were applied to the Google Play account Build step 'Upload Android APK to Google Play' marked build as failure {noformat}

    Jenkins JIRA | 2 years ago | Christopher Orr
    org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out
  4. 0

    I got this report and the stacktrace below: "Some times when uploading apk’s (has happened 2 times now) the plugins thinks that upload failed. It then says that "No changes were applied to the Google Play account» but when checking in Google Play console, all apk’s were uploaded and published!" Essentially the Google Play Publishing API fails to respond in time, so we assume failure. Unfortunately from my testing, I've seen this a few times — timeouts or HTTP 500 server errors — even although the changes may have been applied. The API is not the most reliable. So we should handle this particular situation (i.e. a timeout while committing the edits) and inform the user that the build outcome is unknown. {noformat} Assigning uploaded APK(s) to alpha release track... The alpha release track will now contain the APK(s): 10040, 20045, 30043, 40044, 50041, 60042 Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34) at hudson.FilePath.act(FilePath.java:1006) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:302) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) ... Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) ... at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410) 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:190) at org.jenkinsci.plugins.googleplayandroidpublisher.ApkUploadTask.execute(ApkUploadTask.java:41) at org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:31) ... 11 more - No changes were applied to the Google Play account Build step 'Upload Android APK to Google Play' marked build as failure {noformat}

    Jenkins JIRA | 2 years ago | Christopher Orr
    org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.jenkinsci.plugins
      AbstractPublisherTask.call
      1. org.jenkinsci.plugins.googleplayandroidpublisher.AbstractPublisherTask.call(AbstractPublisherTask.java:34)
      1 frame