-
Notifications
You must be signed in to change notification settings - Fork 214
Description
Describe the bug
It appears, that complex types are no longer be decoded to json similar to the already fixed issue #2281 .
After restarting the publisher they are decoded correctly. Unfortunately, I have no access to the logs from the start time of the publisher. So I do not know, if there was an error during the complex type loading.
This issue applies to the data value change of a subscription as well as the /read Api call.
Could you give me some hints how to investigate or fix this issue?
The Api call "/reset" does not solve the error.
To Reproduce
Call "/read" api with body
{
"connection": {
"endpoint": {
"url": "{{opcEndpoint}}",
"securityMode": "none"
},
"options": "None",
"group": "read"
},
"request": {
"nodeid": "nsu={{namespacePrefix}}http://xxx.com/xxx-Interfaces/;s=145"
}
}
Received body:
{
"value": [
{
"TypeId": "http://xxx.com/UA/Types/#i=5005",
"Body": "CQAAAEUxNTc3MzBfRGIAAACsHFpkO98vQI/C9SicCNNAAAAAAAAAZEAAAAAAAABkQI/C9SiMotNAAQAAAA=="
},
{
"TypeId": "http://xxx.com/UA/Types/#i=5005",
"Body": "BwAAAEBHUklEXzEBAAAAAAAAAAAAAABxPQoXIZ4xQQAAAAAAiKNAAAAAAACIk0BxPQoXIZ4xQQUAAAA="
}
],
"dataType": "ExtensionObject",
"sourceTimestamp": "2025-07-01T08:55:31.2624739Z",
"serverTimestamp": "2025-07-01T09:20:34.5572889Z"
}
Expected behavior
I would excepts the json encoded values as it is the most of the time.
Additional context
We are currently using the Publisher Version "2.9.11.3+8cc2770b48"
We cant use the latest version since it still have a memory leak #2365
The Api call to "/diagnostics/connections" returns following. I am using the "group": "read" to read the value.
[
{
"connection": {
"endpoint": {
"url": "opc.tcp://localhost:21878",
"securityMode": "none"
},
"options": "noComplexTypeSystem, noSubscriptionTransfer"
}
},
{
"connection": {
"endpoint": {
"url": "opc.tcp://localhost:21878",
"securityMode": "none"
}
},
"server": {
"sessionId": "nsu=urn:Z0008A0033:UnifiedAutomation:UaGateway;g=93ed4afe-3d1f-4cdb-8321-c310175bdfdb",
"sessionName": "opc.tcp://localhost:21878_AA0D02AD",
"serverUri": "urn:Z0008A0033:UnifiedAutomation:UaGateway",
"actualSessionTimeout": 60000,
"maxResponseMessageSize": 8388608,
"connectTime": "2025-06-26T06:45:51.3672158Z",
"lastContactTime": "2025-07-01T09:29:06.2585369Z",
"currentSubscriptionsCount": 2,
"currentMonitoredItemsCount": 32,
"currentPublishRequestsInQueue": 2,
"totalRequestCount": {
"totalCount": 150705
},
"readCount": {
"totalCount": 44312
},
"callCount": {
"totalCount": 3
},
"createMonitoredItemsCount": {
"totalCount": 2
},
"createSubscriptionCount": {
"totalCount": 2
},
"setPublishingModeCount": {
"totalCount": 2
},
"publishCount": {
"totalCount": 106276
},
"browseCount": {
"totalCount": 108
},
"subscriptions": [
{
"subscriptionId": 1941091774,
"priority": 255,
"publishingInterval": 1000,
"maxKeepAliveCount": 10,
"maxLifetimeCount": 30,
"currentKeepAliveCount": 3,
"maxNotificationsPerPublish": 65536,
"publishingEnabled": true,
"enableCount": 1,
"monitoredItemCount": 1,
"publishRequestCount": 60146,
"latePublishRequestCount": 2,
"eventNotificationsCount": 54179,
"notificationsCount": 54179,
"nextSequenceNumber": 27532
},
{
"subscriptionId": 1941091775,
"priority": 255,
"publishingInterval": 1000,
"maxKeepAliveCount": 10,
"maxLifetimeCount": 30,
"currentKeepAliveCount": 1,
"maxNotificationsPerPublish": 65536,
"publishingEnabled": true,
"enableCount": 1,
"monitoredItemCount": 31,
"publishRequestCount": 46128,
"dataChangeNotificationsCount": 10241,
"notificationsCount": 10241,
"nextSequenceNumber": 7583
}
]
}
},
{
"connection": {
"endpoint": {
"url": "opc.tcp://localhost:21878",
"securityMode": "none"
},
"group": "AssetStates",
"options": "noComplexTypeSystem, noSubscriptionTransfer"
}
},
{
"connection": {
"endpoint": {
"url": "opc.tcp://localhost:21878",
"securityMode": "none"
},
"options": "noComplexTypeSystem"
}
},
{
"connection": {
"endpoint": {
"url": "opc.tcp://localhost:21878",
"securityMode": "none"
},
"group": "read"
}
}
]