kermitt2 / biblio-glutton

A high performance bibliographic information service: https://biblio-glutton.readthedocs.io
125 stars 16 forks source link

Stalled request for async branch #8

Closed kermitt2 closed 5 years ago

kermitt2 commented 5 years ago

With the async branch, the following request runs forever :)

curl "http://localhost:8080/service/lookup?biblio=%EF%9D%A2.+%EF%9D%A4%EF%9D%A5%EF%9D%AC%EF%9D%AC%EF%9D%A9%EF%9D%AE%EF%9D%A7+%EF%9D%A5%EF%9D%B4+%EF%9D%A1%EF%9D%AC."

The string is only made of small capitals: query.bibliographic=.   . Such queries should normally fail quickly, not rely on the (super long currently) timeout.

The query fails immediately with master branch and a sync. call to ES.

lfoppiano commented 5 years ago

I pushed a fix in commit 0694d29957e01d84934dfd6d95a89c1550fd5224