Connection problem between Python OPC UA Client and Siemens Simit OPC UA Server: The response message size exceeds limits set by the client.|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Connection problem between Python OPC UA Client and Siemens Simit OPC UA Server: The response message size exceeds limits set by the client.
Avatar
Yalvac Top
New Member
Members
Forum Posts: 2
Member Since:
05/11/2021
sp_UserOfflineSmall Offline
1
05/11/2021 - 11:23
sp_Permalink sp_Print

I am trying to implement an OPC UA Client using python. Both the client and the Siemens Simit OPC UA V10.2 Server are running in the same machine. I am not using any authentication for now (None,None). I also enabled the port 47144 on the firewall.

I can connect to the Siemens Simit OPC UA Server with Siemens Simit OPC UA Client by simply doing copy paste the url (opc.tcp://Yalvac:47144) and selecting an endpoint and a namespace URI.

However when I do the same thing with opcua-client GUI or with a python script, I receive the error:

"The response message size exceeds limits set by the client."

I don't understand how can I get this error even though the default max_messagesize is no limit. (max_messagesize = 0)

 

I can also get the server information with the python script using:

client.connect_and_find_servers()

but still no connection.

 

What could be the reason of this error message?

I appreciate any help. Thanks in advance Embarassed

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/11/2021 - 13:26
sp_Permalink sp_Print

The limit is enforced on the server side and the client side.

No application will allow unlimited message sizes so setting to zero should use the default - not alllow unlimited.

If the server is refusing to send the response it may be because you have requested values that are too large.

You can use wireshark to find the exact request which is resulting in the error.

Check the number of nodes requested and/or the size of values requested.

Avatar
Yalvac Top
New Member
Members
Forum Posts: 2
Member Since:
05/11/2021
sp_UserOfflineSmall Offline
3
05/12/2021 - 00:44
sp_Permalink sp_Print

Thank you very much for the help! I increased the max_messagesize after inspecting packets with wireshark. And that solved my problem Surprised

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 14
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855