-
Notifications
You must be signed in to change notification settings - Fork 0
Querying of nested nodes doesn't work. #69
Comments
I think the issue here is with the nesting. The error shows get_level=10000: comp = cript.Computation.get(url = "https://criptapp.org/api/computation/bc029f84-ca3a-493f-9b03-1e7981a13bce/", get_level=10000) I think the SDK is looking to get the 1,000th nested node and can't find so it gives an error that nothing does not have a .get() method by saying I think this could be fixed if you explicitly set the comp = cript.Computation.get(url = "https://criptapp.org/api/computation/bc029f84-ca3a-493f-9b03-1e7981a13bce/", get_level=0) Please let me know if that didn't work and we can look into it further |
Thanks for coming back to me. You are right in a way. How, am I supposed to know, what the right level it is that I should request the node? Also, the code should catch this differently. |
I don't think, I fully understand |
Those are all excellent points! I can put this on my tasks list, coordinate with our project manager, and see how I can start to plan for needed improvements. There is a chance that the SDK could benefit from refactoring but I am not fully certain yet. I am open to exploring many solutions here before finding the best one for us, designing the code, and then implementing it. As far as the errors go, I agree with you 100%, they are just unhelpful errors that do more to confuse than help. Regarding getting a nested node, maybe it might be helpful if we have something like Regarding the documentation of the SDK, I fully agree with you that the documentation needs a lot of improvements. This is a known issue and something that is being actively worked on by me. The SDK documentation is a bit long so as I ask for your patience as I continue to work it to get a first draft out. If I missed anything at all please feel free to let me know and I will do my best to address them. |
Thanks, that looks great. |
You got it! |
Just in case: Are you certain you own all children/references nodes? I was facing a - maybe - similar problem while trying to duplicate a Material. Its components were sometimes private so I had to skip them, it was complicated. |
Yes, I own all the subnodes. So, I am sure that I should be able to change it. |
I am querying a nested computation node, but it doesn't seem to work correctly.
The following code is supposed to query a node, but it fails:
the error message is:
I am not sure if anyone can reproduce this, since the node is not public.
I would like to make it public, but I can fetch it via the SDK and I also can't update via the GUI.
So, not sure how to do this.
The text was updated successfully, but these errors were encountered: