# Inconsistent error with programmly generated wallets

**URL:** <https://forum.klever.org/t/inconsistent-error-with-programmly-generated-wallets/3876>\
**Category:** Developers\
**Created:** [June 18, 2025, 3:33pm UTC](https://forum.klever.org/t/inconsistent-error-with-programmly-generated-wallets/3876 "2025-06-18T15:33:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shymelon](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@shymelon](https://forum.klever.org/u/shymelon)\
**Post date:** [June 18, 2025, 3:33pm UTC](https://forum.klever.org/t/inconsistent-error-with-programmly-generated-wallets/3876/1 "2025-06-18T15:33:04Z")

</div>

Hello Klever Team,

I’ve encountered a strange issue where some wallets consistently throw exceptions when attempting to send a transaction. Interestingly, switching to another wallet resolves the problem immediately — everything starts working as expected.

Here’s an example of the error on **testnet:**

```auto
TypeError: fetch failed
    at node:internal/deps/undici/undici:15482:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async me.getNonce (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:26998)
    at async me.buildTransactionWithHash (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:27290)
    at async me.buildTransaction (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:27805)

```

```json
"cause": {
  "errno": -3008,
  "code": "ENOTFOUND",
  "syscall": "getaddrinfo",
  "hostname": "node.mainnet.klever.finance"
},
"timestamp": "2025-06-18 13:48:02"

```

**Wallet** : `klv1qau93vpvuktchsmj6m6c9p5yzrvrujcfyjumq2cp02hm5uxkvw6q2pke2n`

Notably, the error references `node.mainnet.klever.finance`, even though I have explicitly configured everything to use `testnet.klever.org`.

And here’s a similar error on **mainnet** :

```auto
TypeError: fetch failed
    at node:internal/deps/undici/undici:13502:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async me.getNonce (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:26998)
    at async me.buildTransactionWithHash (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:27290)
    at async me.buildTransaction (/usr/src/app/node_modules/@klever/sdk-node/dist/cjs/index.js:17:27805)

```

```json
"cause": {
  "errno": -111,
  "code": "ECONNREFUSED",
  "syscall": "connect",
  "address": "127.0.0.1",
  "port": 443
},
"timestamp": "2025-06-18 14:50:50"

```

**Wallets** :  
❌ `klv1anagmyl8f020ejjgzxqrda2gvpfm27ezhsmugehw2n5jptxwr2vs5uuh7r` (unsuccessful, throws error above)  
✅ `klv1ysula058u2nytruhaumgkgqvuxh8mpas0zf8d8usm3dnkfslug7qc6fkxk` (newly generated — worked fine in same runtime with the same token)

I am using `node-sdk v2.4.0`

Let me know if there’s any additional information I can provide to help track this down.

---

<div class="post-metadata">

**Author:** ![Beroni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.klever.org/beroni/32/2569_2.png) [@Beroni](https://forum.klever.org/u/Beroni)\
**Post date:** [June 20, 2025, 2:25pm UTC](https://forum.klever.org/t/inconsistent-error-with-programmly-generated-wallets/3876/2 "2025-06-20T14:25:14Z")

</div>

Hello @shymelon,

The error you reported usually occurs when the address is not present on the blockchain:

```json
"cause": {
  "errno": -3008,
  "code": "ENOTFOUND",
  "syscall": "getaddrinfo",
  "hostname": "node.mainnet.klever.finance"
},
"timestamp": "2025-06-18 13:48:02"

```

The hostname shown in the error is indeed incorrect . Even when using the testnet environment, the error message may still display the `mainnet` hostname. However, this **does not impact** the actual transaction creation. A fix will be included in an upcoming SDK version.
