cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load swagger definition in Swagger Editor

SOLVED
Highlighted
Community Hero

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.
1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Unable to load swagger definition in Swagger Editor

@HKosava,

Installed docker image of Swagger Editor locally and able to proceed.
Thank you once again for your time.


Regards,
Rao.
6 REPLIES 6
Moderator

Re: Unable to load swagger definition in Swagger Editor

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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
Community Hero

Re: Unable to load swagger definition in Swagger Editor

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.
Community Hero

Re: Unable to load swagger definition in Swagger Editor

Thank you for looking into it and your time.


Regards,
Rao.
Moderator

Re: Unable to load swagger definition in Swagger Editor

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.

swagger-editor-import-file.gif


I can only think of 2 cases where "Import URL" (not "Import File") may not work:

  1. Importing an HTTP (non-secure) URL into the HTTPS (secure) version of the editor. Browsers block HTTPS-to-HTTP requests for security reasons.
  2. 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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
Community Hero

Re: Unable to load swagger definition in Swagger Editor

Thank you. I will check and get back.


Regards,
Rao.
Community Hero

Re: Unable to load swagger definition in Swagger Editor

@HKosava,

Installed docker image of Swagger Editor locally and able to proceed.
Thank you once again for your time.


Regards,
Rao.
New Here?
Join us and watch the welcome video:
SmartBear + Cucumber
Top Kudoed Authors