Aecli domain name error trying to send a token

I am suddenly getting this error. It worked a minute ago.

Silicon:aepp-cli-js hd$ aecli account spend [snip] ak_[snip] 1
✔ Enter your password … *********
API ERROR:  Error: AENS: Invalid name domain. Possible domains [aet,test]
    at isNameValid (/usr/local/lib/node_modules/@aeternity/aepp-cli/node_modules/@aeternity/aepp-sdk/es/tx/builder/helpers.js:237:27)
    at Object.resolveRecipientName (/usr/local/lib/node_modules/@aeternity/aepp-cli/node_modules/@aeternity/aepp-sdk/es/ae/index.js:86:7)
    at Object.spend (/usr/local/lib/node_modules/@aeternity/aepp-cli/node_modules/@aeternity/aepp-sdk/es/ae/index.js:72:28)

Found it: the address was truncated, some digits missing.

You might want to check why that creates this misleading error message.

Probably worth checking @nduchak.chain

The cli think that you try to send tokens using AENS name if address is not valid, that the reason of this error. Probably we need to make the better validation there

1 Like