And that resulted in this error:
Error: Config setting for -rpcbind only applied on test network when in [test] section.
I fixed it by adding rpcbind=127.0.0.1 to the [test] section.
Try with this config. I just moved the RPC parameters to the test section.
coin=testnet
testnet=1
txindex=1
dbcache=1024
listen=1
onion=127.0.0.1:9050
discover=1
proxyrandomize=1
server=1
addresstype=bech32
changetype=bech32
# Options only for mainnet
[main]
# Options only for testnet
[test]
rpcbind=127.0.0.1
rpcport=18332
rpcauth=<rpcuser>:<rpcpassword>
# Options only for regtest
[regtest]