-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use query function for Naigara4 nHaystack Server #116
Comments
But if i test on another JACE that have ~900+ points and ~250 equips and 3 sites. It is well everything I can use every function in pyhaystack. In this problem case, I test on real site that have ~20 in each modbus device(equip). I don't know where is error from? |
Okay, so https://github.com/ChristianTremblay/pyhaystack/blob/master/pyhaystack/client/session.py#L405-L420 is pretty simple. So it's doing a
If the JACE is expecting something else there, something is seriously wrong. I suspect a bug or misconfiguration in the server. I'd do the following: from pyhaystack.exception import HaystackError
try:
print(session.sites) # will most likely throw the exception as seen before
except HaystackError as e:
print(e)
print(e.traceback) That'll show you the traceback from the server-side, which you can take up with nHaystack people if needed. |
Right, so server is suppressing the stack trace (probably a good thing, you don't want to show it to an attacker, nHaystack used to reveal it by default)… but you'll have to look in Niagara Workbench (probably the platform manager if I recall correctly) to see what's going on server-side. |
Problem
Example Code:
Code 1
Code 2
Code 3
Question
I can get entity by get_entity function but can not find_entity
The text was updated successfully, but these errors were encountered: