Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Querying of nested nodes doesn't work. #69

@InnocentBug

Description

@InnocentBug

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:

    host = "criptapp.org"
    token = argv[0]
    cript.API(host, token)

    comp = cript.Computation.get(url = "https://criptapp.org/api/computation/bc029f84-ca3a-493f-9b03-1e7981a13bce/")
    print(comp)

the error message is:

Traceback (most recent call last):
  File "/media/data/elwood/chimad/hongbo4/la.py", line 18, in <module>
    main(sys.argv[1:])
  File "/media/data/elwood/chimad/hongbo4/la.py", line 14, in main
    comp = cript.Computation.get(url = "https://criptapp.org/api/computation/bc029f84-ca3a-493f-9b03-1e7981a13bce/", get_level=10000)
  File "<@beartype(cript.data_model.nodes.base_node.BaseNode.get) at 0x7fbd416bac10>", line 29, in get
  File "/home/ludwig/.local/lib/python3.9/site-packages/cript/data_model/nodes/base_node.py", line 188, in get
    node._generate_nested_nodes(get_level=get_level, level=level)
  File "/home/ludwig/.local/lib/python3.9/site-packages/cript/data_model/base.py", line 126, in _generate_nested_nodes
    value[i] = node_class.get(
AttributeError: 'NoneType' object has no attribute 'get'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions