canontech/staking-payouts

1.3.7 is not working on Kusama

Closed this issue · 3 comments

novy4 commented

I've update to the latest version and seems that payout is not working anymore. It can parse the unclamed eras, but can't claim the rewards.

2021-10-13 11:07:12 [payouts] info: The following unclaimed payouts where found:
staking.payoutStakers(XXX, 2,853)
staking.payoutStakers(XXX, 2,854)
staking.payoutStakers(XXX, 2,855)
2021-10-13 11:07:12 [payouts] info: Total of 3 unclaimed payouts.
2021-10-13 11:07:12 [payouts] info: Transactions are being created. This may take some time if there are many unclaimed eras.
2021-10-13 11:07:12 [payouts] debug: Sender address: YYY

It stucks on the last line for ages

Can confirm not working for me either. I can try looking into it tomorrow. Seems to be an issue with WS. After a very long time I get the following error:

2021-10-13 22:37:06 [payouts] info: Transactions are being created. This may take some time if there are many unclaimed eras.
2021-10-13 22:52:01          API-WS: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Socket Error: read ECONNRESET
2021-10-13 22:52:01        RPC-CORE: getHeader(hash?: BlockHash): Header:: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Socket Error: read ECONNRESET
2021-10-13 22:52:01        RPC-CORE: getHeader(hash?: BlockHash): Header:: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Socket Error: read ECONNRESET
2021-10-13 22:52:01        RPC-CORE: health(): Health:: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Socket Error: read ECONNRESET

Error: disconnected from wss://kusama.api.onfinality.io/public: 1006:: Socket Error: read ECONNRESET
    at W3CWebSocket.value (/home/alko/bot/staking-payouts/node_modules/@polkadot/rpc-provider/ws/index.cjs:176:23)
    at W3CWebSocket._dispatchEvent [as dispatchEvent] (/home/alko/bot/staking-payouts/node_modules/yaeti/lib/EventTarget.js:107:17)
    at W3CWebSocket.onClose (/home/alko/bot/staking-payouts/node_modules/websocket/lib/W3CWebSocket.js:228:10)
    at WebSocketConnection.<anonymous> (/home/alko/bot/staking-payouts/node_modules/websocket/lib/W3CWebSocket.js:201:17)
    at WebSocketConnection.emit (node:events:390:28)
    at WebSocketConnection.handleSocketClose (/home/alko/bot/staking-payouts/node_modules/websocket/lib/WebSocketConnection.js:389:14)
    at TLSSocket.emit (node:events:402:35)
    at node:net:672:12
    at TCP.done (node:_tls_wrap:580:7)

I though it might be an issue with the RPC endpoint, but get the same error with wss://kusama-rpc.polkadot.io.

Thanks for the error reports. Give 1.3.8 a swirl and let me know if you still have issues

Working like a charm again 🪄