org.jenkinsci.plugins.googleplayandroidpublisher.PublisherApiException: java.net.SocketTimeoutException: Read timed out

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Christopher Orr,
  • 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}
    via by Christopher Orr,
    • 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)
    No Bugmate found.