I am trying to connect to self managed camunda(helm chart 10.2.0) tasklist from a spring boot application. But it is throwing below exception on startup
Caused by: io.camunda.identity.sdk.impl.rest.exception.RestException: request failed with status code '404' and body '{"error":"Unable to find matching target resource method"}'
at io.camunda.identity.sdk.impl.rest.RestClient.send(RestClient.java:123) ~[identity-sdk-8.5.2.jar:8.5.2]
at io.camunda.identity.sdk.impl.rest.RestClient.request(RestClient.java:105) ~[identity-sdk-8.5.2.jar:8.5.2]
Client config:
package com.transaction.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.camunda.tasklist.CamundaTaskListClient;
import io.camunda.tasklist.exception.TaskListException;
@Configuration
public class TaskListClientConfig {
@Value("${taskList.url}")
private String taskListUrl;
@Value("${taskList.clientId}")
private String taskListClientId;
@Value("${taskList.clientSecret}")
private String taskListClientSecret;
@Value("${keycloakUrl}")
private String keycloakUrl;
@Bean
public CamundaTaskListClient client() throws TaskListException{
return CamundaTaskListClient.builder()
.taskListUrl(taskListUrl)
.selfManagedAuthentication(taskListClientId, taskListClientSecret, keycloakUrl)
.build();
}
}
application.properties:
taskList.url=http://127.0.0.1:8095
taskList.clientId=tasklist
taskList.clientSecret=xxxxxxxx
keycloakUrl=http://127.0.0.1:8096/auth
dependencies:
<dependency>
<groupId>io.camunda.spring</groupId>
<artifactId>spring-boot-starter-camunda</artifactId>
<version>8.5.4</version>
</dependency>
<dependency>
<groupId>io.camunda</groupId>
<artifactId>camunda-tasklist-client-java</artifactId>
<version>8.5.3.4</version>
</dependency>
spring boot : 3.2.5
JFYI i am using zeebe client as well
camunda.client.mode=oidc
camunda.client.auth.oidc-type=keycloak
camunda.client.auth.client-id=zeebe
camunda.client.auth.client-secret=c5ZUlrSySar50xm
camunda.client.auth.issuer=https://camunda.services.vietcombank.virtusa.dev/auth/realms/camunda-platform
camunda.client.zeebe.enabled=true
camunda.client.zeebe.gateway-url=http://127.0.0.1:26500
camunda.client.zeebe.base-url=http://127.0.0.1:8087
camunda.client.zeebe.prefer-rest-over-grpc=false
camunda.client.zeebe.audience=zeebe-api