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

ConnectionResetError: [Errno 54] when attempting to connect to the server through client.py #63

Open
terminal-overflow opened this issue Nov 11, 2022 · 1 comment

Comments

@terminal-overflow
Copy link

When attempting the first module of the experience, the second slide of the step-by-step guide states to 'run server.py and client.py in that order'. Once the virtual environment has been set up correctly, I run server.py with no issues.

I then run client.py and get ConnectionResetError: [Errno 54] Connection reset by peer. I originally thought this was the connection being refused due to too many requests, but as the code:

while True:
    sleep(1)

already existed in server.py this was not the issue.

After some significant time searching, there was one recommendation that the IP of localhost (127.0.0.1) had to be specified in the QUERY constant (instead of just the words). This solved the issue for me and client.py ran as expected afterwards.

I cannot say why this issue is occurring, or if the issue is native to mac (my operating system).

I thought it would be best to raise the issue in case anybody else has the issue and possibly a further look could be taken into it.

@chinmay3012
Copy link

try running server3.py first and after that switch to client.py and then run it..

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

2 participants