dashed-slug.net › Forums › General discussion › Cannot connect to the wallet
- This topic has 10 replies, 2 voices, and was last updated 3 years, 9 months ago by alexg.
-
AuthorPosts
-
February 26, 2021 at 11:19 am #10092alexgKeymaster
Not responding: Dashed_Slug_Wallets_Coin_Adapter_RPC->get_balance() failed with status=”403″ and error=”HTTP_FORBIDDEN”
February 26, 2021 at 12:32 pm #10096alexgKeymasterThis means that the password you entered in the coin adapter settings does not match the one in your conf file.
In Bitcoin there are two ways to specify RPC API credentials:
rpcauth
/rpcpassword
, andrpcauth
. Use one or the other, but not both. Check that the password you’ve entered in the coin adapter settings matches the password in your wallet config.A common problem is if your password contains the
=
character. This cannot be used withrpcpassword
, as the=
character is used as a separator between key and value in the.conf
file. The simplest solution is not to use a password with the=
character.Also check that the IP in your rpcallowip clause in in CIDR notation, i.e. it should have something in it specifying the network class (see here).
February 26, 2021 at 1:30 pm #10097alexgKeymasterit is still not working
March 1, 2021 at 8:16 am #10119alexgKeymasterHello,
There are no other situations that I know of where bitcoin would respond with 403.
Can you please be more specific? What did you try?
1. Did you enter credentials using rpcuser/rpcpassword or using rpcauth?
2. Did you enter an rpcbind config? If so, did you specify the network class as mentioned above?
Let me know.
with regards
March 1, 2021 at 10:25 am #10125alexgKeymasterIt is Litecoin, I entered credentials using rpcuser/rpcpassword, and I have double check and they are correct.
March 2, 2021 at 7:55 am #10136alexgKeymasterCan you show me your rpcbind config?
March 5, 2021 at 7:15 am #10164alexgKeymasterrpcuser=xxxx
rpcpassword=xxxx
rpcallowip=127.0.0.1
rpcallowip=45.87.80.226
rpcallowip=45.87.80.240
rpcallowip=45.87.80.254
rpcport=9332
server=1
daemon=1
txindex=1
listen=1March 5, 2021 at 7:21 am #10165alexgKeymasterHello,
There is no
rpcbind
statement in your config. Add the following:
rpcbind=a.b.c.d
where a.b.c.d is the public internet IP of your wallet server.Also, I believe that the
rpcallowip
statements must be in CIDR notation. Try:rpcallowip=127.0.0.1/8 rpcallowip=45.87.80.226/24 rpcallowip=45.87.80.240/24 rpcallowip=45.87.80.254/24
with regards
March 5, 2021 at 9:41 am #10166alexgKeymasterIt isn’t working, even after I reboot the server
March 6, 2021 at 2:10 am #10172alexgKeymasterI fixed with rpcallowip=45.87.80.*
March 8, 2021 at 8:49 am #10180alexgKeymasterThat’s great news. Thanks for letting us know.
Just be careful. Anyone in that IP range can theoretically connect to your wallet, if they also have your RPC password.
with regards
-
AuthorPosts
- You must be logged in to reply to this topic.