Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26689

com.openshift.restclient.BadRequestException when using CRC and Openshift tooling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.12.0.Final
    • 4.12.0.Final
    • openshift
    • None

      When running ITests I get BadRequestException:

      06:54:45.926 DEBUG [WorkbenchTestable][AbstractWait] Waiting until Service named eap-app in project test-project gets available....
      
      !ENTRY org.jboss.tools.openshift.ui 4 -1 2019-06-25 06:54:45.934
      !MESSAGE the API version in the data (v1) does not match the expected API version (template.openshift.io/v1)
      !STACK 0
      com.openshift.restclient.BadRequestException: https://api.crc.testing:6443/apis/template.openshift.io/v1/namespaces/test-project/processedtemplates the API version in the data (v1) does not match the expected API version (template.openshift.io/v1)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:104)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
      	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
      	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
      	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
      	at okhttp3.RealCall.execute(RealCall.java:81)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:301)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
      	at com.openshift.internal.restclient.capability.server.ServerTemplateProcessing.process(ServerTemplateProcessing.java:42)
      	at com.openshift.internal.restclient.capability.resources.ProjectTemplateProcessing.process(ProjectTemplateProcessing.java:53)
      	at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob$1.visit(CreateApplicationFromTemplateJob.java:75)
      	at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob$1.visit(CreateApplicationFromTemplateJob.java:1)
      	at com.openshift.internal.restclient.model.KubernetesResource.accept(KubernetesResource.java:94)
      	at org.jboss.tools.openshift.internal.ui.job.CreateApplicationFromTemplateJob.doRun(CreateApplicationFromTemplateJob.java:69)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

      I am not sure if this is related to OpenShift tooling or CRC.

              jkopriva@redhat.com Josef Kopriva
              jkopriva@redhat.com Josef Kopriva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: