importaddress (and possibly other legacy-only wallet functions), when used on a descriptor wallet, return a fairly nondescript error:
0$ ./bitcoin-cli -regtest importaddress test
1error code: -4
2error message:
3This 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