Skip to content

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

@terminal-overflow

Description

@terminal-overflow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions