Closed jnhagelberg closed 1 year ago
Hi @jnhagelberg! We are aware of this problem. Meanwhile, you can use a workaround by using a custom OkHttp request and passing it to the SDK client object.
Cloudant client = Cloudant.newInstance("SERVER");
HttpUrl requestUrl =
HttpUrl.parse(client.getServiceUrl())
.newBuilder()
.addPathSegment("_active_tasks")
.build();
Request.Builder rb = new Request.Builder().url(requestUrl).get(); // an okhttp3.Request.Builder
client.getAuthenticator().authenticate(rb); // add existing authentication to the custom request
Response response = client.getClient().newCall(rb.build()).execute();
These were added via https://github.com/IBM/cloudant-java-sdk/pull/402 and will be in the next release.
When you call GET /_active_tasks, indexing entries look like the following:
The following fields are missing from
ActiveTask
: