[BUG] TypeError in OPC-UA Connector: Unsupported Operand 'NoneType' + 'str' Since v3.7.0 #1680
Labels
bug
can be closed
Label uses when issue is fixed or feature is added and will be available in the next release.
Describe the bug
When running the OPC-UA Connector in ThingsBoard Gateway, an error occurs due to an unsupported operation between NoneType and str. The error originates from the _find_nodes function when attempting to concatenate a NoneType value with a string. This issue started occurring in version 3.7.0, whereas previous versions did not have this problem.
Recent changes in version 3.7.0, particularly in the _find_nodes function within opcua_connector.py, may have introduced scenarios where child_node.Name can be None, leading to this error. Reviewing the changes between versions 3.6.3 and 3.7.0 suggests that handling of child_node.Name was modified, potentially omitting necessary checks for None values.
Connector name (If bug in the some connector):
OPC-UA Connector
Error traceback (If available):
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: