Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kasmith11 opened this issue Oct 9, 2022 · 4 comments
Open

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

kasmith11 opened this issue Oct 9, 2022 · 4 comments

Comments

@kasmith11
Copy link

kasmith11 commented Oct 9, 2022

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
Copy link
Owner

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
Copy link
Author

@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
Copy link
Author

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

@AegeanYan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants