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

HTTP 422 uploading Android APK artifact

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • appcenter-plugin
    • None
    • 0.8.2

      Hi!

      I'm not sure if maybe this is an AppCenter issue or it's related to the plugin. I'm getting an HTTP 422 error uploading .apk artifacts. I'm posting here cause as soon as my job fails due to the 422 error, I can download the apk artifact and manually upload it to AppCenter without any issue, so I believe it's not related to the artifact itself.

      Here's the full stack trace I get:

      Creating an upload resource.
      Create upload resource successful.
      Uploading app to resource.
      io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: 
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$execute$0(UploadAppToResourceTask.java:57)
       at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
       at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
       at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2159)
       at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
       at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: retrofit2.HttpException: HTTP 422 Unprocessable Entity
       ... 7 more
      io.jenkins.plugins.appcenter.AppCenterException: Upload to AppCenter failed.
       at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:56)
       at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:17)
       at hudson.remoting.UserRequest.perform(UserRequest.java:212)
       at hudson.remoting.UserRequest.perform(UserRequest.java:54)
       at hudson.remoting.Request$2.run(Request.java:369)
       at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
       at java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
       at java.lang.Thread.run(Thread.java:835)
       Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 192.168.216.128/192.168.216.128:58182
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
       at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
       at hudson.remoting.Channel.call(Channel.java:957)
       at hudson.FilePath.act(FilePath.java:1162)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:142)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:129)
       at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
       at org.jenkins_ci.plugins.flexible_publish.builder.FailFastBuilder.perform(FailFastBuilder.java:102)
       at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
       at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
       at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
       at org.jenkins_ci.plugins.flexible_publish.strategy.FailFastExecutionStrategy.perform(FailFastExecutionStrategy.java:63)
       at org.jenkins_ci.plugins.flexible_publish.ConditionalPublisher.perform(ConditionalPublisher.java:206)
       at org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.perform(FlexiblePublisher.java:124)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
       at hudson.model.Build$BuildExecution.post2(Build.java:186)
       at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
       at hudson.model.Run.execute(Run.java:1840)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: 
       at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
       at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2070)
       at io.jenkins.plugins.appcenter.task.UploadTask.call(UploadTask.java:54)
       ... 10 more
      Caused by: io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: 
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$execute$0(UploadAppToResourceTask.java:57)
       at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
       at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2159)
       at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
       at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       ... 1 more
      Caused by: retrofit2.HttpException: HTTP 422 Unprocessable Entity
       ... 7 more
      
      

      Thanks!

            mezpahlan Mez Pahlan
            jruiz Javier Ruiz
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: