Errors/Chain errors
InvalidBatchLength
Check the argument values against the operation schema
A per-subnet weight batch (batch_set_weights, batch_commit_weights, batch_reveal_weights) was empty or had more items than there are networks. Send at least one item and at most one per subnet.
Declared by the SubtensorModule pallet; it classifies to the semantic code invalid_argument.
Declared at pallets/subtensor/src/macros/errors.rs#L397.
Remediation
Check the argument values against the operation schema
The same explanation is available in the terminal: btcli explain InvalidBatchLength.