[jbosstools-issues] [JBoss JIRA] (JBIDE-26689) com.openshift.restclient.BadRequestException when using CRC and Openshift tooling

Josef Kopriva (Jira) issues at jboss.org
Tue Jul 2 06:27:00 EDT 2019


     [ https://issues.jboss.org/browse/JBIDE-26689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josef Kopriva closed JBIDE-26689.
---------------------------------


Closing, issues in templates.

> com.openshift.restclient.BadRequestException when using CRC and Openshift tooling
> ---------------------------------------------------------------------------------
>
>                 Key: JBIDE-26689
>                 URL: https://issues.jboss.org/browse/JBIDE-26689
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.12.0.Final
>         Environment: MacOS 10.14.5 (18F203) CSB, JDK11, CRC 0.87.0-alpha-4.1.0+3a5033a
>            Reporter: Josef Kopriva
>            Assignee: Josef Kopriva
>            Priority: Minor
>             Fix For: 4.12.0.Final
>
>
> When running ITests I get BadRequestException:
> {code:java}
> 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)
> {code}
> I am not sure if this is related to OpenShift tooling or CRC.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list