entropyxyz / cli

CLI utility to ease interactions with an Entropy network.
GNU Affero General Public License v3.0
5 stars 0 forks source link

CLI crashes when waiting around on WS menus #85

Open HCastano opened 4 weeks ago

HCastano commented 4 weeks ago

If you go to a menu on the CLI which established a WebSocket connection and just wait, eventually the CLI crashes with the following error:

/Users/hcastano/Workspace/Entropy/cli/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:397
        const bytesRecv = message.data.length;
                                       ^
TypeError: Cannot read properties of null (reading 'length')
    at WebSocket.__internal__onSocketMessage (/Users/hcastano/Workspace/Entropy/cli/node_modules/@polkadot/rpc-provider/cjs/ws/index.js:397:40)
    at WebSocket.[nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
    at WebSocket.dispatchEvent (node:internal/event_target:751:26)
    at fireEvent (node:internal/deps/undici/undici:10966:14)
    at websocketMessageReceived (node:internal/deps/undici/undici:10988:7)
    at ByteParser.run (node:internal/deps/undici/undici:11439:17)
    at ByteParser._write (node:internal/deps/undici/undici:11315:14)
    at writeOrBuffer (node:internal/streams/writable:564:12)
    at _write (node:internal/streams/writable:493:10)
    at ByteParser.Writable.write (node:internal/streams/writable:502:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I've attached a video below showing this as well.

https://github.com/entropyxyz/cli/assets/12344623/6509712c-436a-4464-8f86-d6e214770924

rh0delta commented 3 weeks ago

@HCastano is this a consistent experience youre running into? I have left the cli open for well over 10 mins and have yet to hit this error

HCastano commented 1 week ago

@rh0delta yep, I just tried again with fb1f6ee9b and it still crashes. Is there any other info I can give you to help debug this?