# Grin-wallet can't connect to local node

**URL:** <https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761>\
**Category:** Tech Support\
**Created:** [December 21, 2019, 5:58am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761 "2019-12-21T05:58:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [December 21, 2019, 5:58am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/1 "2019-12-21T05:58:30Z")

</div>

I compiled both the node and the wallet, the node seems to be running fine, and I’m having trouble connecting the wallet to the node.

Node version: “3.0.0-beta.2 (proto: 2)”  
grin-wallet version: “grin-wallet 3.0.0-beta.3”

I made sure the path was correct in the grin-wallet.toml for the node\_api\_secret\_path.

The error I get in the beginning of most wallet commands is:

`20191220 23:57:05.908 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Request error: Wrong response code: 401 Unauthorized with data Body`

Anybody know how to fix this?

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 6, 2021, 8:53pm UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/3 "2021-11-06T20:53:31Z")

</div>

I am getting

```auto
0211106 20:49:08.447 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20211106 20:49:08.447 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
20211106 20:49:08.471 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response

```

Tried both 5.1.1 and 5.04 using the latest wallet version and the wallet cant seem to connect to the server  
i followed this guide [GRIN Full node and Wallet Installation Linux - YouTube](https://www.youtube.com/watch?v=PwnF-LG-zms)  
How do I fix?

```auto
WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully

```

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 8, 2021, 2:02am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/4 "2021-11-08T02:02:34Z")

</div>

I know it is not really a fix, but could you try to sync your wallet with grinnode.live, that would at least exclude wallet problems and we would know problem is the node

```auto
grin-wallet -r "https://grinnode.live:3413" info

```

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 8, 2021, 9:48am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/5 "2021-11-08T09:48:29Z")

</div>

it works with grinnode.live, i already tested that. grinnode.live however states that should not rely on their service and run a full node yourself in production. that is what im trying to do, run a full node that’s always online.

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 8, 2021, 2:15pm UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/6 "2021-11-08T14:15:58Z")

</div>

Of course. I agree. I just wanted to exclude problems with the wallet. Could you double check your toml config files for both wallet and the node? We need to make sure wallet is trying to reach it under the right local address and port.

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 8, 2021, 2:29pm UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/7 "2021-11-08T14:29:52Z")

</div>

grin-server.toml

```auto
[server]
api_http_addr = "0.0.0.0:3413"
[server.p2p_config]
host = "0.0.0.0"
port = 3414

```

./grin-wallet --api\_server\_address=“[https://localhost:3413](https://localhost:3413)” -t test/ -p test info

```auto

grin@debian:~/grin-wallet/target/release$ ./grin-wallet --api_server_address="http://localhost:3413" -t test/ -p test info
20211108 14:27:15.200 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)
20211108 14:27:15.201 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)
20211108 14:27:15.251 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (https://localhost:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)

____Wallet Summary Info - Account 'default' as of height 1471670____

20211108 14:27:15.251 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
 Confirmed Total | 0.100000000 
 Awaiting Confirmation (< 10) | 0.000000000 
 Awaiting Finalization | 0.000000000 
 Locked by previous transaction | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable | 0.100000000 

WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
grin@debian:~/grin-wallet/target/release$

```

---

<div class="post-metadata">

**Author:** ![mcm-mike](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/mcm-mike/32/3492_2.png) [@mcm-mike](https://forum.grin.mw/u/mcm-mike)\
**Post date:** [November 8, 2021, 4:46pm UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/8 "2021-11-08T16:46:17Z")

</div>

would you mind sharing some logs from your [grin-node](https://github.com/mimblewimble/grin) ?

The log file is defined in your `grin-server.toml`

**example from my grin-node**

```auto
...
#log file path
log_file_path = "/var/log/grin-server.log"
...

```

- Could be your local node is not synced or not running
- check please “netstat” or “lsof -i” for open ports on “3413 & 3414”

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 8, 2021, 7:47pm UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/9 "2021-11-08T19:47:50Z")

</div>

Updater Thread unable to contact node

---

<div class="post-metadata">

**Author:** ![harry.potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/harry.potter/32/99_2.png) [@harry.potter](https://forum.grin.mw/u/harry.potter)\
**Post date:** [November 14, 2021, 10:55am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/10 "2021-11-14T10:55:45Z")

</div>

Issue has been solved [WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?) Command ‘info’ completed successfully · Issue #624 · mimblewimble/grin-wallet (github.com)](https://github.com/mimblewimble/grin-wallet/issues/624)

---

<div class="post-metadata">

**Author:** ![renzokuken](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/renzokuken/32/3563_2.png) [@renzokuken](https://forum.grin.mw/u/renzokuken)\
**Post date:** [November 16, 2021, 2:03am UTC](https://forum.grin.mw/t/grin-wallet-cant-connect-to-local-node/6761/11 "2021-11-16T02:03:10Z")

</div>

Potentially related. Discovered during the Winter 2020 bug bash challenge [wallet randomly loses access to the local node · Issue #561 · mimblewimble/grin-wallet · GitHub](https://github.com/mimblewimble/grin-wallet/issues/561)
