You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am trying to delete a node with a custom type using the asyncua framework. I have reviewed the client-deleting.py example provided in the repository and attempted to implement node deletion in my application. However, I am encountering an issue: after calling delete_nodes, I am still able to access and read the node's attributes like BrowseName. Code Example:
# Attempt to delete a batch of nodes
await self.client.delete_nodes(self.obj_list)
# Attempt to delete a single node
node = self.client.get_node(self.obj_nodeid)
results = await self.client.delete_nodes([node]) # Delete one node
# Verify if the node still exists
node_after = self.client.get_node(self.obj_nodeid)
try:
browse_name = await node_after.read_browse_name()
except Exception:
logger.info("Delete Successfully")
Observed Behavior:
Even after calling delete_nodes, the node remains accessible. I am still able to retrieve the BrowseName using read_browse_name() without any exceptions.
Expected Behavior:
After calling delete_nodes, the node should no longer exist, and attempting to access it should raise an exception.
Additional Context:
The node being deleted has a custom type derived from BaseObjectType.
asyncua version: 1.1.5
python version: 3.8.17
I have stored the nodes in a list and attempted both batch deletion and single-node deletion.
Is there something I am missing in the deletion process? Any guidance or example code would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Description:
I am trying to delete a node with a custom type using the asyncua framework. I have reviewed the client-deleting.py example provided in the repository and attempted to implement node deletion in my application. However, I am encountering an issue: after calling delete_nodes, I am still able to access and read the node's attributes like BrowseName.
Code Example:
Observed Behavior:
Even after calling delete_nodes, the node remains accessible. I am still able to retrieve the BrowseName using read_browse_name() without any exceptions.
Expected Behavior:
After calling delete_nodes, the node should no longer exist, and attempting to access it should raise an exception.
Additional Context:
The node being deleted has a custom type derived from BaseObjectType.
asyncua version: 1.1.5
python version: 3.8.17
I have stored the nodes in a list and attempted both batch deletion and single-node deletion.
Is there something I am missing in the deletion process? Any guidance or example code would be greatly appreciated.
The text was updated successfully, but these errors were encountered: