Errors/Chain errors
CanNotSetRootNetworkWeights
Check the argument values against the operation schema
set_weights was called with netuid 0, the root network, where normal weight setting is not allowed. Use a non-root netuid argument; root weights are handled by a separate mechanism.
Declared by the SubtensorModule pallet; it classifies to the semantic code invalid_argument.
Declared at pallets/subtensor/src/macros/errors.rs#L117.
Remediation
Check the argument values against the operation schema
The same explanation is available in the terminal: btcli explain CanNotSetRootNetworkWeights.