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

Error monitoring #129

Closed
franklupo opened this issue Jul 26, 2023 · 19 comments
Closed

Error monitoring #129

franklupo opened this issue Jul 26, 2023 · 19 comments

Comments

@franklupo
Copy link

Hi,
i connect client to Siemens plc.
When read the statuscode is null but value and timestamps are ok.
When create monitoring receive status BadEncodingLimits Exceeded

what am I doing wrong?

Best regards

@nauful
Copy link
Owner

nauful commented Jul 26, 2023

Hello,

Can you share a Wireshark capture with no security?

@franklupo
Copy link
Author

i don't know how to do with Wireshark

@nauful
Copy link
Owner

nauful commented Jul 26, 2023

https://help.salesforce.com/s/articleView?id=000385344&language=en_US&type=1

Otherwise you might be monitoring too many items in a single call. Try batches of a few items at once.

@franklupo franklupo changed the title Erro monitoring Error monitoring Jul 27, 2023
@franklupo
Copy link
Author

opcua.zip

@franklupo
Copy link
Author

Hi,
I don't know if it helps but with this library it works
https://github.com/convertersystems/opc-ua-client

best regards

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

Looks like a PublishResponse is too large for the sender/receiver according to the initial configuration. I need to see a capture with no security, this connection is secured with encryption so I cannot read the messages.

@franklupo
Copy link
Author

opcua2.zip

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

Still encrypted:
image

You have to debug through this since I can monitor items with all of the test servers I have access to. If you can share an unencrypted capture I can try to help. Otherwise I can't find an issue.

@nauful nauful closed this as completed Jul 27, 2023
@franklupo
Copy link
Author

encryption where should I disable?

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

var messageSecurityMode = MessageSecurityMode.SignAndEncrypt;

Change SignAndEncrypt to Sign.

@franklupo
Copy link
Author

Is None

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

Check in Wireshark that you can see the contents of the PublishRequest message. It should show a full disassembly of the body if not encrypted. Otherwise only the headers are visible.

Example of a full body:
image

@franklupo
Copy link
Author

var messageSecurityMode = MessageSecurityMode.None;
var securityPolicy = SecurityPolicy.None;

@franklupo
Copy link
Author

franklupo commented Jul 27, 2023

i'm using the port 4841 and wireshark is set 4840. I changed the port to 4841
try now

opcua3.zip

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

I can see the contents now. Not sure why it fails, the server publishes 0 notifications, the client sends another request and the server fails with BadUnexpectedError.

The only issue I can think of might be this:
image

Perhaps request a publishing interval of 5 seconds (5000).

@franklupo
Copy link
Author

Reopen issue please

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

I can try to assist you with library usage but I prefer to keep issues for problems with the library itself. Please try my suggestions above and let me know if that works.

@franklupo
Copy link
Author

The problem is the parameter filter in MonitoringParameters,
if present response Goof is null return BadEncodingLimitsExceeded
IF presente the notification not work.

@nauful
Copy link
Owner

nauful commented Jul 27, 2023

Thanks, will note that if I see this issue again.

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

2 participants