Skip to content
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

swagger ui "try it out" problem again #99

Closed
blatoo opened this issue Nov 20, 2020 · 3 comments
Closed

swagger ui "try it out" problem again #99

blatoo opened this issue Nov 20, 2020 · 3 comments

Comments

@blatoo
Copy link

blatoo commented Nov 20, 2020

I can not use "preview mode" in vscode the "try it out" function:

I simply want run: http://localhost:9000/todos , but it always return: TypeError: Failed to fetch, however, when I use my webbrowser, it works totally fine.

Here is my swagger.yml file:

openapi: '3.0.2'
info:
  title: API Title
  version: '1.0'
servers:
  - url: 'http://localhost:9000'
paths:
  /todos:
    get:
      responses:
        '200':
          description: OK!

Actually I saw the same question in a previous thread, but @vfateev said it was solved:
#80

But, it doesn't looks like solved in version 3.8.0 ....

@ak1394
Copy link
Collaborator

ak1394 commented Nov 20, 2020

Could you try opening developer tools panel as described here https://code.visualstudio.com/api/extension-guides/webview#inspecting-and-debugging-webviews and inspecting the error messages on the console of the devtools?

It would be helpful if you could provide more detailed error message then the one shown by Swagger UI

@blatoo
Copy link
Author

blatoo commented Nov 20, 2020

@ak1394 Thanks very much for the help. The problem suddenly disappeared, after I open the devtool. I have no idea, why this happens, but I guess, may be cache...

@ak1394
Copy link
Collaborator

ak1394 commented Nov 24, 2020

@blatoo Happy to hear! :)

@ak1394 ak1394 closed this as completed Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants