hsahovic / poke-env

A python interface for training Reinforcement Learning bots to battle on pokemon showdown
https://poke-env.readthedocs.io/
MIT License
283 stars 93 forks source link

Error: read ECONNRESET when using Ubuntu 20.04 on WSL2 #339

Open kasmith11 opened 1 year ago

kasmith11 commented 1 year ago

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.

hsahovic commented 1 year ago

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?

kasmith11 commented 1 year ago

@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 commented 1 year ago

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

AegeanYan commented 1 year ago

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