validator-badge icon indicating copy to clipboard operation
validator-badge copied to clipboard

Long response times when validating

Open stephan2012 opened this issue 8 years ago • 1 comments

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?

stephan2012 avatar Feb 02 '17 12:02 stephan2012

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

fehguy avatar Feb 02 '17 15:02 fehguy