swagger-api / validator-badge

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

Internal server error #9

Closed atlithorn closed 9 years ago

atlithorn commented 9 years ago

Apologies if this is the wrong place to report. I'm trying to validate a spec but it crashes.

http://online.swagger.io/validator/debug?url=https://test-api.sling.is/spec.json

I realise that there must be something horribly wrong with my spec.json but I'm assuming you don't want the validator to crash regardless.

atlithorn commented 9 years ago

Closing this for now since my altered spec does not validate anymore (ie. I get a validation error back, service does not crash). I will re-open when I have fixed the validation errors and this re-occurs

fehguy commented 9 years ago

Thanks, please reopen if you still have an issue.

teledemic commented 9 years ago

I see this as well on several specs that seem to work OK in swagger-ui. I would love to know what the problem with them is, but unfortunately rather than the usual nice debug info, I just get a 500 internal server error. For example: http://online.swagger.io/validator/debug?url=http://raw.githubusercontent.com/webron/test/master/swagger.json

atlithorn commented 9 years ago

It's no solution to the issue but when this happens I find the errors in my schema by going here: http://json-schema-validator.herokuapp.com/index.jsp

Paste the swagger schema from here https://github.com/swagger-api/swagger-spec/blob/master/schemas/v2.0/schema.json into the schema field and your spec in the data field

teledemic commented 9 years ago

Thank you! Very useful. Both swagger files that caused the error in validator-badge checked out fine using that tool.

fehguy commented 9 years ago

Hi, the issue is with invalid SSL certificates on the server hosting the swagger specs. We'll get that fixed shortly.

fehguy commented 9 years ago

This has been fixed in https://github.com/swagger-api/validator-badge/commit/3f44779388bb00f30f0f351161e7b074153b22cc