swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Failed to fetch remote schema on http://bigstickcarpet.com/swagger-parser/www/index.html

Open kaihendry opened this issue 9 years ago • 5 comments

Failed to fetch http://s.natalian.org/2016-04-25/v.yaml

Why ?

kaihendry avatar Apr 25 '16 04:04 kaihendry

This error is coming from your browser, not from Swagger Parser. If you check the developer console, I suspect you'll see an error message like this one:

screen shot 2016-04-25 at 7 47 11 am

That's a CORS error, which means that CORS is not enabled (or not properly configured) on the s.natalian.org server

JamesMessinger avatar Apr 25 '16 12:04 JamesMessinger

I'm going to leave this issue open and mark it as an "enhancement". I'll see if there's a way to add code to Swagger Parser to detect CORS errors and show a better, more informative error message.

JamesMessinger avatar Apr 25 '16 12:04 JamesMessinger

Any updates on this? I'm having the same issue.

dpmartin990 avatar May 14 '18 23:05 dpmartin990

@dpmartin990 - Check your browser console for errors. You may need to enable CORS on your server

JamesMessinger avatar May 15 '18 12:05 JamesMessinger

I am running into the issue where the browser is not making an options request to my hosted swagger file.

IE: running on http://localhost:8080, Cors properly configured at http://example.com/openapispec.json but because there is no OPTIONS request, the browser is failing CORS.

This may have been the original issue.

joursler-Sunset avatar Jan 16 '24 20:01 joursler-Sunset