JetBrains-Research / pubtrends

Scientific literature explorer. Runs a Pubmed or Semantic Scholar search and allows user to explore high-level structure of result papers
Apache License 2.0
36 stars 2 forks source link

Exception during expand search by request: immunometabolism macrophage #235

Closed olegs closed 4 years ago

olegs commented 4 years ago
[2020-09-09 13:16:03,531: ERROR/ForkPoolWorker-3] Task analyze_search_terms[b4ccac2b-bf71-4ac4-98f1-0c31f59958a7] raised unexpected: CypherSyntaxError('Invalid input \'-11\' is not a valid value, must be a positive integer (line 6, column 23 (offset: 824))\n"                LIMIT -11;"\n                       ^')
Traceback (most recent call last):
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/user/pysrc/celery/tasks.py", line 34, in analyze_search_terms
    ids = analyzer.expand_ids(
  File "/home/user/pysrc/papers/analyzer.py", line 107, in expand_ids
    expanded_ids = self.loader.expand(new_ids or current_ids, limit - len(current_ids))
  File "/home/user/pysrc/papers/db/pm_neo4j_loader.py", line 241, in expand
    expanded |= set([str(r['expanded']) for r in session.run(query)])
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/neo4j/__init__.py", line 503, in run
    self._connection.fetch()
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/neobolt/direct.py", line 419, in fetch
    return self._fetch()
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/neobolt/direct.py", line 461, in _fetch
    response.on_failure(summary_metadata or {})
  File "/home/user/miniconda3/envs/pubtrends/lib/python3.8/site-packages/neobolt/direct.py", line 755, in on_failure
    raise CypherError.hydrate(**metadata)
neobolt.exceptions.CypherSyntaxError: Invalid input '-11' is not a valid value, must be a positive integer (line 6, column 23 (offset: 824))
"                LIMIT -11;"
                       ^
olegs commented 4 years ago

Cannot reproduce anymore on 0.9.716