Sending grin floonet coins with running wallet listener always failed

root@CYDaemon:~# grin-wallet --floonet send -d http://35.184.144.221:13415 6
Password:
20190219 08:11:50.927 ERROR grin_refwallet::adapters::http - Posting transaction slate (is recipient listening?): Request error: Wrong response code
Wallet command failed: LibWallet Error: Client Callback Error: Posting transaction slate (is recipient listening?): Request error: Wrong response code

it always show above error, sending transaction via file work fine, but failed with running wallet listener.
and I’m sure my grin node and wallet port 13413-13415 is opened. you guys can test it with Command: telnet 35.184.144.221 13415


root@CYDaemon:~/.grin/floo# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 10696/sshd
tcp 0 0 0.0.0.0:13413 0.0.0.0:* LISTEN 19593/grin
tcp 0 0 0.0.0.0:13414 0.0.0.0:* LISTEN 19593/grin
tcp 0 0 0.0.0.0:13415 0.0.0.0:* LISTEN 10153/grin

anyone encountered the same issue?

This is most likely an issue with the api secret not found by the node/wallet - if you still experience this issue, try rebuilding from latest master (including Show response code in API client error message by hashmap · Pull Request #2683 · mimblewimble/grin · GitHub) and post the error code here. If it’s a 401, then you miss .api_secret. Here is how my grin config directory looks like.

[mkargaki@foo ~]$ ll ~/.grin/main/
total 8.6M
-rw-rw-r--. 1 mkargaki mkargaki   20 xxx .api_secret
drwxrwxr-x. 6 mkargaki mkargaki 4.0K xxx chain_data
-rw-r--r--. 1 mkargaki mkargaki 8.3M xxx grin-server.log
-rw-rw-r--. 1 mkargaki mkargaki 6.2K xxx grin-server.toml
-rw-rw-r--. 1 mkargaki mkargaki  16K xxx grin-wallet.log
-rw-rw-r--. 1 mkargaki mkargaki 2.8K xxx grin-wallet.toml
drwxrwxr-x. 4 mkargaki mkargaki 4.0K xxx wallet_data