Skip to content

Connection Error #3

@ahmadfaizan965

Description

@ahmadfaizan965

Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 84, in connect
connection_bytes_response: bytes = self.__send(connection_request)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 238, in __send
raise S7CommunicationError(
"The connection has been closed by the peer."
)
pyS7.errors.S7CommunicationError: The connection has been closed by the peer.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\pyS7\main.py", line 13, in
client.connect()
~~~~~~~~~~~~~~^^
File "c:\Users\Administrator\Desktop\pyS7\pyS7\client.py", line 101, in connect
raise S7ConnectionError(f"Failed to complete connection setup: {e}") from e
pyS7.errors.S7ConnectionError: Failed to complete connection setup: The connection has been closed by the peer.
PS C:\Users\Administrator\Desktop\pyS7>

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions