Skip to content

KeyError reported a few times #15

@castortech

Description

@castortech

Running version 0.11.6 (commit 1eafa40)

We're getting a few (like 2-3) of those errors, always key 117:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.11/site-packages/aidial_sdk/chat_completion/response.py", line 76, in _run_producer
    await producer(self.request, self)
  File "/general_mindmap/v2/completion/app.py", line 171, in chat_completion
    await get_subgraph_logic(
  File "/general_mindmap/v2/completion/app.py", line 118, in get_subgraph_logic
    nodes, edges = get_subgraph(
                   ^^^^^^^^^^^^^
  File "/general_mindmap/utils/graph.py", line 76, in get_subgraph
    resultNodes.append(nodeMap[root])
                       ~~~~~~~^^^^^^
KeyError: '117'

not sure at all what impact it was having.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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