Unable to load swagger definition in Swagger Editor
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unable to load swagger definition in Swagger Editor
Trying to load a local swagger definition 2.0 file in public swagger editor
However, does not respond when user selects the file and click on open file. Using chrome brower on ubuntu which was working some time ago.
Regards,
Rao.
Solved! Go to Solution.
- Labels:
-
Swagger Editor
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rao,
Sorry to hear you are having issues. Does the issue happen with a specific file or with any file (e.g. https://petstore.swagger.io/v2/swagger.yaml)? If this happens with a specific file, could you please attach it here or PM it to me?
Also, which versions of Chrome and Ubuntu do you use?
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have't tested others.
Since that is public url, I believe most of the world might be accessing it and might have reported by some one.
Have you tried any file or url and it worked on the same site (editor.swagger.io)?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue might be Ubuntu-specific - which versions of Ubuntu and Chrome do you use? Could you please check if there are any errors on the Console tab in Chrome Developer Tools?
I'm asking because file import works fine for me, but I'm using Chrome on Windows 7.
I can only think of 2 cases where "Import URL" (not "Import File") may not work:
- Importing an HTTP (non-secure) URL into the HTTPS (secure) version of the editor. Browsers block HTTPS-to-HTTP requests for security reasons.
- The server that hosts the OpenAPI file does not support CORS, so the browser blocks cross-domain request from editor.swagger.io to that server.
Both cases are caused by browser security restrictions, and the workaround is to save the file locally, and use the "File > Import File" instead of "File > Import URL".
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Installed docker image of Swagger Editor locally and able to proceed.
Thank you once again for your time.
Regards,
Rao.
