Closed shunjizhan closed 1 month ago
use this docker compose file, and docker compose up
.
Then just wait for a while, until seeing bunch of these logs. Now sending tx will throw ERROR (ws): Error handling request: 'Error: WebSocket is not connected
node | 2024-10-08 07:18:05 API-WS: disconnected from wss://acala-rpc.aca-api.network: 1006:: Connection ended
node | 2024-10-08 07:19:08 API-WS: disconnected from wss://acala-rpc.aca-api.network: 1006:: Connection ended
node | 2024-10-08 07:20:12 API-WS: disconnected from wss://acala-rpc.aca-api.network: 1006:: Connection ended
node | 2024-10-08 07:21:18 API-WS: disconnected from wss://acala-rpc.aca-api.network: 1006:: Connection ended
node | 2024-10-08 07:22:21 API-WS: disconnected from wss://acala-rpc.aca-api.network: 1006:: Connection ended
this could be related to wss://acala-rpc.aca-api.network which I have observed some disconnects but not yet got time to investigate. can you try RPC hosted by other infra provider and see if it is still happening?
yeah seems to be wss://acala-rpc.aca-api.network
's issue, tried wss://acala-rpc.dwellir.com
and it's been very stable so far.
Closing it since it's not related to chopsticks
might be subway's issue because that's where wss://acala-rpc.aca-api.network
is different
sometimes also get this error Error: disconnected from wss://acala-rpc.aca-api.network: 1000:: Normal Closure
https://github.com/AcalaNetwork/bodhi.js/actions/runs/11236784903/job/31237676355?pr=1032
sometimes after running chopsticks node for a while, it will disconnect from ws, and cannot recover. When making a request to it, it throws
ERROR (ws): Error handling request: 'Error: WebSocket is not connected
.In bodhi tests, sometimes it throws such error in the middle of test running, and fails the tests. Rerun tests usually works.
example logs
Maybe the ws reconnecting mechanism failed to work? Expected behavior: