Skip to content

Getting ConnectionAbortedError after all nodes are finished subscription which was earlier working fine for last few months #1455

@rajnishnationfirst

Description

@rajnishnationfirst

Hi Team,

We developed a OPC UA client in python for datachange event for a SIEMENS WinCC over OPC UA which was running fine for few 7-8 months and suddenly from today where i am subscribing for all 900 nodes and then after the subscription and publiishing , ConnectionAbortedError showing the below exception is shown ..

Exceptions Thrown after all publishing is completed with Subscrption

ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in host machine.

Image Snapshot of OPC UA Alarms Client

skodaaaa

Hi Team,

I am facing issues at start during subscribing 900+ Tags for on_datachnage_notiification event. ( here i have a python list containing all 900+ Node Ids of Tags and i am suscribing the whole list as shown below in the code .)

After subscription events for all nodes are over then i am getting a ConnectionAbortedError which is shown in the image below .

if name == "main":
logging.basicConfig(level=logging.WARN)
# logger = logging.getLogger("KeepAlive")
# logger.setLevel(logging.DEBUG)

client = Client("opc.tcp://AAAAAAAAAA:4861")

try:
    client.connect()

    node_Id_List = []
    for iterator in range(len(tags_node_ids_list)):
        node_Id_List.append(client.get_node(tags_node_ids_list[iterator]))


    # subscribing to a variable node
    handler = SubHandler()
    sub = client.create_subscription(500, handler)
    handle = sub.subscribe_data_change(node_Id_List)
    time.sleep(0.1)


finally:
    pass

Pls help me colleagues.
Thanks

Rajnish Vishwakarma

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