Duniter indexer does not connect to local node

When trying to run pnpm dev:test with a Duniter node listening on localhost (can be explored with polkadotjs app), I get the following:

2023-05-09 15:25:12          API-WS: disconnected from ws://localhost:9944: 1006:: Abnormal Closure
2023-05-09 15:25:14          API-WS: disconnected from ws://localhost:9944: 1006:: Abnormal Closure
2023-05-09 15:25:17          API-WS: disconnected from ws://localhost:9944: 1006:: Abnormal Closure
[...]

@ManUtopiK did you already have this problem when developing on the indexer?

By the way, no problem when connecting to a remote node: INDEXER_DUNITER_WS_ENDPOINT=wss://gdev.coinduf.eu/ws

Setting:

INDEXER_DUNITER_WS_ENDPOINT=ws://127.0.0.1:9944/

(local IP instead of localhost) fixes it.

Default values should be modified in the code.

2 Likes