ranking-agent/strider

bad query causes strider 500

cbizon opened this issue · 0 comments

query={
    "message": {
        "query_graph": {
            "edges": {
                "e00": {
                    "subject": "n01",
                    "object": "porphyria"
                }
            },
            "nodes": {
                "porphyria": {
                    "ids": [
                        "MONDO:0037939"
                    ]
                },
                "n01": {
                    "ids": [
                        "biolink:NamedThing"
                    ]
                }
            }
        }
    }
}

There is an error in the above query: n01 has an ids element when it means to have a categories element.

However, this isn't malformed, it's just an id that strider won't be able to resolve.

In this case, strider is throwing a 500.