importaddress (and possibly other legacy-only wallet functions), when used on a descriptor wallet, return a fairly nondescript error:
$ ./bitcoin-cli -regtest importaddress test
error code: -4
error message:
This type of wallet does not support this command
The RPC help of importaddress doesn't mention nor further explain this incompatibility, nor what alternative to use instead (e.g. importdescriptors with addr(X) in this case).
This potentially applies to the following RPCs:
importaddress(done in #25368)importprivkeyimportpubkeyimportmultiaddmultisigaddressdumpprivkeygetnewaddressdumpwalletimportwalletsethdseed