Hi team
I got a error “multiple ‘Set-Cookie’ headers found” when I call the “searchFlowNodeInstances” API.
Here is my code:
package test;
import io.camunda.common.auth.Product;
import io.camunda.common.auth.SimpleAuthentication;
import io.camunda.common.auth.SimpleConfig;
import io.camunda.common.auth.SimpleCredential;
import io.camunda.operate.CamundaOperateClientBuilder;
import io.camunda.operate.search.FlowNodeInstanceFilter;
import io.camunda.operate.search.SearchQuery;
public class TestCamundaOperate {
public static void main(String[] args) throws Exception {
var username = "demo";
var password = "demo";
var operateUrl = "http://localhost:8888";
var credentials = new SimpleCredential(operateUrl, username, password);
var config = new SimpleConfig();
config.addProduct(Product.OPERATE, credentials);
var authentication = new SimpleAuthentication(config);
var operateClient = new CamundaOperateClientBuilder().authentication(authentication)
.operateUrl(operateUrl)
.setup()
.build();
var searchQuery = new SearchQuery();
var filter = FlowNodeInstanceFilter.builder()
.flowNodeId("Activity_1aqkhh5")
.build();
searchQuery.setFilter(filter);
var flowNodeInstances = operateClient.searchFlowNodeInstances(searchQuery);
System.out.println(flowNodeInstances.getFirst()
.getKey());
}
}
Here is my maven:
<dependency>
<groupId>io.camunda.spring</groupId>
<artifactId>spring-boot-starter-camunda</artifactId>
<version>8.5.1</version>
</dependency>
My Operate is self-managed and the version is 8.5.1.