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

Long response times when validating #101

Open
stephan2012 opened this issue Feb 2, 2017 · 1 comment
Open

Long response times when validating #101

stephan2012 opened this issue Feb 2, 2017 · 1 comment

Comments

@stephan2012
Copy link

stephan2012 commented Feb 2, 2017

We're running the Docker Image of the validator badge. When trying to validate from an internal resource it takes 2+ minutes to get a response:

root@80b4f461309a:/validator# time curl http://localhost:8080/?url=http://my.host.domain:8041/my/path/swagger.json
[…]
real    2m7.294s
user    0m0.015s
sys     0m0.010s

Accessing the given url directly works without any issues:

root@80b4f461309a:/validator# curl http://my.host.domain:8041/my/path/swagger.json
{
  "swagger" : "2.0",
  "info" : {

Looks like it runs into timeout. The container has no Internet access and it responds quickly when not passing a url.

Any pointers to what's going on?

@fehguy
Copy link
Contributor

fehguy commented Feb 2, 2017

The container is attempting to get the schema which is online. We can create a flag so it does not do so

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

2 participants