hiero-ledger / hiero-ledger/hiero-consensus-node

yahcli "HapiClients has no matching stub!" error on an otherwise working config.yml

Open
#20,701 4 comments 0 reactions 1 assignee Claimed by @mhess-swl View on GitHub
Yahcli
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

Using yahcli to do an account info command in yahcli 0.7.9 (and not yahcli 0.5.0) will yield a INVALID_NODE_ACCOUNT error for an otherwise valid configuration. Talking to @tinker-michaelj this is suspected to be a yahcli bug but I do not have any additional details beyond that it may be related to a recent @mhess-swl change?

Not account and payer are redacted but the same number and are otherwise a regular Hedera account.

```
docker run -it -v $(pwd):/launch gcr.io/hedera-registry/yahcli:0.7.9 -p -a 6 -n mainnet accounts info
Log level is WARN
Targeting mainnet, paying with accountNum:

---------------------|----------------------|
Account Id | Keys |
---------------------|----------------------|
2025-08-19 15:13:23.281 INFO 213 InfoSuite - -------------- STARTING Info SUITE --------------
2025-08-19 15:13:23.292 INFO 45 MapPropertySource - Initializing a MapPropertySource from {nodes=35.186.191.247:0.0.4#1,35.199.161.108:0.0.6#3,35.242.233.154:0.0.10#7, default.payer.pemKeyLoc=mainnet/keys/account.pem, default.node=6, default.payer=0.0.}
2025-08-19 15:13:24.020 INFO 75 ConfigProviderBase - Properties file data/config/genesis.properties does not exist and won't be used as configuration source
2025-08-19 15:13:24.021 INFO 75 ConfigProviderBase - Properties file data/config/application.properties does not exist and won't be used as configuration source
java.lang.NullPointerException: HapiClients has no matching stub!
at java.base/java.util.Objects.requireNonNull(Objects.java:259)
at com.hedera.services.bdd.spec.infrastructure.HapiClients.nextStubsFromPool(HapiClients.java:393)
at com.hedera.services.bdd.spec.infrastructure.HapiClients.getFileSvcStub(HapiClients.java:213)
at com.hedera.services.bdd.junit.hedera.utils.GrpcUtils.send(GrpcUtils.java:56)
at com.hedera.services.bdd.junit.hedera.AbstractGrpcNetwork.send(AbstractGrpcNetwork.java:52)
at com.hedera.services.bdd.junit.hedera.HederaNetwork.send(HederaNetwork.java:53)
at com.hedera.services.bdd.spec.fees.FeesAndRatesProvider.downloadWith(FeesAndRatesProvider.java:152)
at com.hedera.services.bdd.spec.fees.FeesAndRatesProvider.lookupDownloadFee(FeesAndRatesProvider.java:139)
at com.hedera.services.bdd.spec.fees.FeesAndRatesProvider.downloadRateSet(FeesAndRatesProvider.java:116)
at com.hedera.services.bdd.spec.fees.FeesAndRatesProvider.init(FeesAndRatesProvider.java:81)
at com.hedera.services.bdd.spec.HapiSpec.tryReinitializingFees(HapiSpec.java:728)
at com.hedera.services.bdd.spec.HapiSpec.init(HapiSpec.java:817)
at com.hedera.services.bdd.spec.HapiSpec.run(HapiSpec.java:643)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at com.hedera.services.bdd.suites.HapiSuite.runSequentialSpecs(HapiSuite.java:273)
at com.hedera.services.bdd.suites.HapiSuite.runSuite(HapiSuite.java:231)
at com.hedera.services.bdd.suites.HapiSuite.runSuiteSync(HapiSuite.java:203)
at com.hedera.services.yahcli.commands.accounts.InfoCommand.call(InfoCommand.java:36)
at com.hedera.services.yahcli.commands.accounts.InfoCommand.call(InfoCommand.java:12)
at picocli.CommandLine.executeUserObject(CommandLine.java:2031)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
at picocli.CommandLine.execute(CommandLine.java:2174)
at com.hedera.services.yahcli.Yahcli.main(Yahcli.java:104)
```

cat config.yml:
```
defaultNetwork: mainnet
networks:
mainnet:
defaultNodeAccount: 4
nodes:
- { id: 1, account: 4, ipv4Addr: 35.186.191.247 }
- { id: 3, account: 6, ipv4Addr: 35.199.161.108 }
- { id: 7, account: 10, ipv4Addr: 35.242.233.154 }
```

Same command passes with 0.5.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.