RXJava Client When adding index: java.util.NoSuchElementException: Sequence contains no elements

Im trying to add and index for Couchbase v=5 using RXJava client Scala wrapper
“java-client” % “2.4.4”,
“rxjava-reactive-streams” % “1.2.1”,

val idx_playerId = Index.createIndex(idx_playerId_name).on(wr.bucket.name, x(s"ALL DISTINCT ARRAY p.id.${i(“value”)} FOR p IN players END")).where(x(“doc”).eq(s(doc)))
val query = N1qlQuery.simple(idx_playerId, params)
bucket.async().query(query)

But I get
java.util.NoSuchElementException: Sequence contains no elements

Blockquote

Adding manually works fine.
There are other indexes that are also added successfully.
Additionally adding it to 4.6.1 works

I updated the java client to the 2.5.1 and it works now