spacy-api-docker icon indicating copy to clipboard operation
spacy-api-docker copied to clipboard

Some requests hang forever

Open ilyashnil opened this issue 6 years ago • 3 comments

I have deployed jgontrum/spacyapi:en_v2 in kubernets. however I am failing to execute post requests even from inside the container: e.g. curl -s localhost:80/models returns ['en'] the same works for curl -s localhost:8000/models but when I am trying to do: curl -s localhost:80/dep -d '{"text":"Pastafarians are smarter than people with Coca Colabottles."}' I am getting timeout from the nginx:

504 Gateway Time-out

504 Gateway Time-out


nginx/1.10.3
The same request sent to the 8000 hangs forever:

ilyashnil avatar May 02 '19 11:05 ilyashnil

I suspect that the reason for hanging response is falcon2.0. See: https://github.com/falconry/falcon/issues/1470

ilyashnil avatar May 03 '19 07:05 ilyashnil

@ilyashnil you right, I had the same problem and the changes in falcon package is the reason. I just added a pull-request with the fix.

Matityahul avatar May 05 '19 14:05 Matityahul

Thanks to @Matityahul PR, this issue seems to be fixed. However, TravisCI (which creates the Docker images) seems to hang during model downloads. I manually built the versions and pushed them, so the images on DockerHub should now be working again. I'll try to have a look into this within the next few days.

jgontrum avatar May 06 '19 11:05 jgontrum