Error: read ECONNRESET when using Ubuntu 20.04 on WSL2
When following the Getting Started guide, I am getting CRASH: Error: read ECONNRESET when running node pokemon-showdown start --no-security using Ubuntu 20.04 on WSL2
`RESTORE CHATROOM: lobby RESTORE CHATROOM: staff
CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
CRASH: Error: read ECONNRESET at Pipe.onStreamRead (node:internal/stream_base_commons:217:20) at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
Worker 1 now listening on 0.0.0.0:8000 Test your server at http://localhost:8000`
When attempting to run RandomPlayer in the documentation I also get the following which never resolves itself:
RandomPlayer 1 - WARNING - Popup message received: |popup|The server is restarting. Battles will be available again in a few minutes.
Hey @kasmith11,
Thanks for opening this issue. Which version of python are you using? I had similar issues with 3.10.
Otherwise, this looks like a showdown issue - maybe increasing the resources allocated to the server could help?
@hsahovic I am running python 3.8.13. What have you done in the past to address the issue? I've looked for this issue in the pokemon-showdown repository as well and none of the closed issues had a solution that worked for me.
Would it be helpful if I open an issue there going forward?
try npm audit fix --force after npm install, this is helpful to me