Skip to content
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

Transfer Subscription Request #1522

Open
qorinator opened this issue Jun 19, 2023 · 0 comments
Open

Transfer Subscription Request #1522

qorinator opened this issue Jun 19, 2023 · 0 comments

Comments

@qorinator
Copy link

qorinator commented Jun 19, 2023

Hi

I am using this library to modify an existing OPCUA test server that is connected to a device with an OPCUA client.

the connection works to a point and then it failed with this error message. note: i modified the permission_rules.py so that the check_validity always returns True.

sending service fault response: "The session id is not valid." (BadSessionIdInvalid)
Unknown message received NodeId(Identifier=841, NamespaceIndex=0, NodeIdType=<NodeIdType.FourByte: 1>) (User(role=<UserRole.Admin: 0>, name='smartgate'))
sending service fault response: "The server does not support the requested service." (BadServiceUnsupported)
sending service fault response: "The session id is not valid." (BadSessionIdInvalid)

I tried to mimic the work that was done on this issue #594 where I always return 'ua.StatusCodes.Good'

however, this results on sending service fault response: "The session id is not valid." (BadSessionIdInvalid)

which I am guessing due to TransferSubscriptionsRequest actually need the subscription to be transferred from some session A to some session B.

I saw that in internal_session.py this function is not yet implemented

async def transfer_subscriptions(self, params: ua.TransferSubscriptionsParameters) -> List[ua.TransferResult]:
        # Subscriptions aren't bound to a Session and can be transfered!
        # https://reference.opcfoundation.org/Core/Part4/v104/5.13.7/
        raise NotImplementedError

I have looked at the reference, however i found the description to be a bit vague.

Is there anyone familiar with this request? and what kind of implementation is actually needed to be added for the transfer_subscription function ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant