EncoderException failed to write outbound message

Hello,

I'm using the Java neo4j driver, and I'm trying to call the apoc.refactor.mergeNodes function, but I keep running into this error:

org.neo4j.driver.internal.shaded.io.netty.handler.codec.EncoderException: Failed to write outbound message: RUN "CALL apoc.refactor.mergeNodes($nodes, {properties: 'discard', mergeRels:true}) YIELD node RETURN count(*)

The param I'm passing in is a List<Value>: {nodes=[[node<#########>, node<#########>, node<#########>], [...], [...], ...]}

Any tips on what I'm doing wrong?

Currently trying to debug:

@Override
public Integer execute(Transaction tx) {
List results = tx.run(cypher, parameters("nodes", params)).list();
System.out.println("Results " + results.get(0));
return 1;
}

Currently running this alongside liquibase, so it's kinda hard to debug compiled jar file

You cannot send nodes as parameters, you need to send their id's or business keys and look them up again.