-
Notifications
You must be signed in to change notification settings - Fork 669
Open
Description
Error
press any key to exitERROR:opcua.server.address_space:Error executing method call CallMethodRequest(ObjectId:FourByteNodeId(ns=2;i=26), MethodId:FourByteNodeId(ns=2;i=27), InputArguments:None), an exception was raised:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/opcua/server/address_space.py", line 466, in _call
result = node.call(method.ObjectId, *method.InputArguments)
TypeError: wrapper() argument after * must be an iterable, not NoneType
Cause
This is because line 466 expects an iterable:
result = node.call(method.ObjectId, *method.InputArguments)Fix
This can be fixed by passing in an empty array if there are no input arguments:
if method.InputArguments is None:
method.InputArguments = []
result = node.call(method.ObjectId, *method.InputArguments)Metadata
Metadata
Assignees
Labels
No labels