swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Can't read from file #190

Open collinbarrett opened 2 years ago

collinbarrett commented 2 years ago

I am getting the "Can't read from file" error. I see a couple of other related issues, but I am not sure how to further debug this. My specs are available with a quick response time via a direct request from curl or my browser, but the validator can't access them. I have a strong suspicion that it is some setting on Cloudflare that is maybe blocking the validator.

Is there a way to get any more debug information about what the validator sees when it makes the request for my specs? (What HTTP error code does it get, etc?)

Does the validator service make the requests from one or more fixed IP addresses that I can add to my Cloudflare allowlist?

Spec 1:

Spec 2:

Possibly related: