biothings / biothings_explorer_jsonld

Apache License 2.0
4 stars 4 forks source link

Weird error when crawling chembl.compound: "The node drugname is not in the digraph" #16

Open lhannest opened 5 years ago

lhannest commented 5 years ago

http://biothings.io/explorer/api/v2/crawler?input_type=chembl.compound&input_value=CHEMBL707

Traceback (most recent call last):
  File "/home/ubuntu/opt/devpy3/lib/python3.5/site-packages/networkx/classes/digraph.py", line 779, in successors
    return iter(self._succ[n])
KeyError: 'drugname'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/opt/devpy3/lib/python3.5/site-packages/tornado/web.py", line 1509, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/ubuntu/opt/biothings_explorer_web/src/handlers/entitycrawler.py", line 308, in get
    results = exploreinput(input_type, input_value)
  File "/home/ubuntu/opt/biothings_explorer_web/src/handlers/entitycrawler.py", line 163, in exploreinput
    endpoints = find_endpoint(_prefix)
  File "/home/ubuntu/opt/biothings_explorer_web/src/handlers/entitycrawler.py", line 44, in find_endpoint
    return list(bt_explorer.api_map.successors(input_type))
  File "/home/ubuntu/opt/devpy3/lib/python3.5/site-packages/networkx/classes/digraph.py", line 781, in successors
    raise NetworkXError("The node %s is not in the digraph." % (n,))
networkx.exception.NetworkXError: The node drugname is not in the digraph.