opcua-client-gui icon indicating copy to clipboard operation
opcua-client-gui copied to clipboard

The requested operation has no match to return.(BadNoMatch)

Open Bagunda opened this issue 5 years ago • 0 comments

I install it. In GUI it work. image

I download client-minimal.py. Change host to client = Client("opc.tcp://192.168.3.100:4840/freeopcua/server/") or client = Client("opc.tcp://192.168.3.100:4840")

And it generate error when run:

root@GP120OH:~/opcua1# python3 client-minimal.py
Objects node is:  Node(TwoByteNodeId(i=84))
Children of root are:  [Node(TwoByteNodeId(i=87)), Node(TwoByteNodeId(i=85)), Node(TwoByteNodeId(i=86))]
Traceback (most recent call last):
  File "client-minimal.py", line 32, in <module>
    myvar = root.get_child(["0:Objects", "2:MyObject", "2:MyVariable"])
  File "/usr/lib/python3/dist-packages/opcua/common/node.py", line 470, in get_child
    result.StatusCode.check()
  File "/usr/lib/python3/dist-packages/opcua/ua/uatypes.py", line 233, in check
    raise UaStatusCodeError(self.value)
opcua.ua.uaerrors._auto.BadNoMatch: The requested operation has no match to return.(BadNoMatch)

Bagunda avatar Dec 05 '20 08:12 Bagunda