poke-env icon indicating copy to clipboard operation
poke-env copied to clipboard

Error: read ECONNRESET when using Ubuntu 20.04 on WSL2

Open kasmith11 opened this issue 3 years ago • 4 comments

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.

kasmith11 avatar Oct 09 '22 13:10 kasmith11

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 avatar Oct 11 '22 11:10 hsahovic

@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.

kasmith11 avatar Oct 12 '22 09:10 kasmith11

Would it be helpful if I open an issue there going forward?

kasmith11 avatar Oct 12 '22 09:10 kasmith11

try npm audit fix --force after npm install, this is helpful to me

Rem1L avatar May 19 '23 02:05 Rem1L