Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some requests hang forever #23

Open
ilyashnil opened this issue May 2, 2019 · 3 comments
Open

Some requests hang forever #23

ilyashnil opened this issue May 2, 2019 · 3 comments

Comments

@ilyashnil
Copy link

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:

<title>504 Gateway Time-out</title>

504 Gateway Time-out


nginx/1.10.3 The same request sent to the 8000 hangs forever:
@ilyashnil
Copy link
Author

I suspect that the reason for hanging response is falcon2.0. See: falconry/falcon#1470

@Matityahul
Copy link
Contributor

@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.

@jgontrum
Copy link
Owner

jgontrum commented May 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants