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
Ads notification received but it has unknown notificationHandle (39). Use unsubscribe() to save resources. #85
Comments
Hi! Basically how this could happen (I think) is that you have active connection and you have subscribed to different variables. Then the connection goes down, you kill the process or something else unexpected. The PLC does not know that and it keeps sending those notifications. If you close the client using So the only way to stop notifications from sending is to restart PLC or to manually send unsubscribe command with the handle. |
Hey I finally found the issue and thought it would be worth mentioning. So even after cleanly disconnecting every time I started getting those messages about unknown notificationHandle, even after clean restarts and they would start accumulating. This was the problem:
For the router address we used the PLC's address. This seems to be actually illegal as only one entity (router or client) should be connecting from one IP address. What seemed to be happening is that we were receiving subscription updates to our ads-client that were meant for the XAE shell that was running at the same time. The moment we switched for the simple connection config of just specifying the targetAmsNetId (and let the local router figure out the rest) all problems we had regarding connection issues with both ads-client and shell + unknown notificationHandle messages disappeared! |
Hi @dotKokott! Sorry for late reply. I read your message on the same day but totally forgot to answer. Thanks for reporting this. It seems that when using a router you can have as many connections as you like. Otherwise just one or so, however I'm not sure how it really was. I investigated that when I started working on this library but now totally forgot... I will add this info to the FAQ! Certainly interesting that you found reason for that unknown handle problem, I have never seen that yet myself. |
Hello,
after upgrading I started receiving a lot of
Ads notification received but it has unknown notificationHandle (39). Use unsubscribe() to save resources.
messages.How exactly can a notification handle get lost and how could I debug this? Is it possible to find out what the initial symbolName for that subscription was?
Thank you!
The text was updated successfully, but these errors were encountered: