-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "list index out of range" when calling method in server-methods.py #1716
Comments
I took another look at this. Asyncua expects the relative path to have some content: But the query actually has zero elements in relative path: It is TranslateBrowsePathsToNodeIds which fails: https://reference.opcfoundation.org/Core/Part4/v104/docs/5.8.4 |
Investigating further, based on table 48 here: https://reference.opcfoundation.org/Core/Part4/v104/docs/5.8.4 - BadNothingToDo should be returned if relativePath is empty list. Adding this however didn't solve the problem. Tested also with Prosys OPC UA Simulation server, it worked fine. |
relativePath can't be empty. So we should return Bad_BrowseNameInvalid. |
Ok BadNothingToDo is the result. This is a bit misleading in the spec. |
Describe the bug
When calling mulptily method in examples/server-methods.py from OPC Router (https://opc-router.com), following error message is created:
UaExpert works fine with this method, so there might be also implementation problem in the OPC Router, but I'm not familiar enough with the library and protocol to tell what is happening.
To Reproduce
Steps to reproduce the behavior incl code:
Expected behavior
A clear and concise description of what you expected to happen.
Method returns the correct value with out no errors.
Version
Python-Version: 3,12.5
opcua-asyncio Version (e.g. master branch, 0.9): 1.1.5
The text was updated successfully, but these errors were encountered: