Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kaihendry opened this issue Apr 25, 2016 · 5 comments

Comments

@kaihendry
Copy link

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

Why ?

@JamesMessinger
Copy link
Member

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
Copy link
Member

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.

@dpmartin990
Copy link

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

@JamesMessinger
Copy link
Member

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

@joursler-Sunset
Copy link

joursler-Sunset commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants