arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
170 stars 47 forks source link

Preview pane only shows "Access Denied" #46

Closed ringods closed 4 years ago

ringods commented 6 years ago

When resurrecting an old project containing a swagger file, I installed the Swagger Viewer extension for the first time. I reloaded VSCode after installation, then triggerd the Preview Swagger action on the open swagger.yaml file. But the only thing I see in the preview pane is this:

AccessDeniedAccess Denied./18264904933L1373L137

Any idea what is wrong?

VSCode 1.26.1 Swagger Viewer 2.0.2 MacOS High Sierra 10.13.6

paulcram commented 5 years ago

I had the same problem. In my case, I already had something listening on port 9000 (minio). I fixed it by changing the default port in the VS Code user settings for the swagger editor to 9001, then restarted VS Code.

arjun-g commented 4 years ago

Fixed in 3.0.0. Will auto assign next available port for preview.