Closed kevinoid closed 3 years ago
I'm facing the same issue in the last few days, failure happens only on swagger2 specs, openapi3 specs work fine. Seems very related to this issue: https://github.com/swagger-api/validator-badge/issues/172
We are running into the same problem and spent many hours trying to find what's changed to caused this until I found this issue. We are unaware that something changed on the remote side can adversely break our CI pipeline until now. Is there any alternative to host everything locally? We are still using swagger v1.
so, to correct, I am actually using v2. I was confusing the api version with swagger version. Any way, I have proved that the problem is the url http://swagger.io/v2/schema.json which sends a 301 redirect to an ip which is unreachable. While the java code seems to fall back to on disk file, I assume the on-disk file is not bundled (I am running using docker)
I download the file from https://raw.githubusercontent.com/swagger-api/validator-badge/master/src/main/resources/schema.json and put it on my own server. Override my host's /etc/hosts to point swagger.io to my own web server and start docker with "--net=host", I am able to get a 200 response again.
So, can we have the schema.json file bundled in the docker image?
Looks like the redirected URL has started to response: http://23.22.16.221/v2/schema.json
I agree. It's been working for me for the past few days. Closing as fixed.
Starting yesterday, https://validator.swagger.io/validator replies to every request with HTTP status 500, content "Failed to process URL". For example, using the
url
query parameter:gets response
Sending
petstore-expanded.json
as the request body:gets response
Thanks, Kevin