spacy-api-docker
spacy-api-docker copied to clipboard
Some requests hang forever
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
I suspect that the reason for hanging response is falcon2.0. See: https://github.com/falconry/falcon/issues/1470
@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.
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.