Comments (10)
I hope this is not too late to post. But I had the same issue and found a solution to it:
- Check if all your controller methods have [http] tag. If they all do and still doesn't work go to step 2
- In your configure function ensure that you have app.UseStaticFiles(); If it still doesn't work go to step 3
- Uninstall and reinstall swagger. If it doesn't work go to step 4 (Core Only)
- If you are using Core Install Microsoft.AspNetCore.StaticFiles and reference it in your project.
That is as far as I got and mine started working
from swaggerlume.
I found a solution to this issue. For me, I've needed to copy the /dist directory in "vendor/swagger-api/swagger-ui" inside the /public of my lumen project. I'm not sure about the proper way but it works for me.
Hope this can help someone.
from swaggerlume.
I am getting the same error with my Web APIs built using ASPNETCore - 'SwaggerUIBundle' is undefined
I get this error when i navigate to /swagger to see the UI - but noting loads in browser and I get this error in browser console. However my json endpoint is working i.e. /swagger/v1/swagger.json I get json response back with my API details. But Swagger UI does not work
from swaggerlume.
I am facing the same issue with my flask application. It works perfectly fine on my localhost. When I try to run it on k8s environment which have a reverse proxy. It gives me an error in the console that SwaggerUIBundle is not defined and I am not able to see the documentation due to this error.
from swaggerlume.
is swagger-ui-bundle.js loaded or not ? Where do you see this error ?
from swaggerlume.
If you are working with loopback and having this error you can install swagger-ui-dist from
https://www.npmjs.com/package/swagger-ui-dist
this link.
It resolved my problem
from swaggerlume.
I am getting the same error with my Web APIs built using ASPNETCore - 'SwaggerUIBundle' is undefined I get this error when i navigate to /swagger to see the UI - but noting loads in browser and I get this error in browser console. However my json endpoint is working i.e. /swagger/v1/swagger.json I get json response back with my API details. But Swagger UI does not work
Facing the same issue.......Above solutions were of no help
from swaggerlume.
I am facing this issue while integrating openapi into SpringBoot application. Any leads would be greater help. TIA
from swaggerlume.
Same here.. Exactly like @aligillaniBD explained. What do I need to do!??? What the hack is going on.
from swaggerlume.
Same here, Has anyone found a fix yet? I have a Nestjs application. The documentation works on localhost. Not, the same case on my GCP compute instance.
from swaggerlume.
Related Issues (20)
- Library should support multiple scan directories HOT 1
- Required @OA\Info() not found when running artisann command HOT 1
- Add support for laravel/lumen 9 HOT 2
- Generate api-docs.yaml
- api-docs.json doesn't render changes
- UnexpectedValueException installing swagger-php:3.*
- How to separate annotation from controller to a new yaml file?
- disable/hide "try it out" button/functionality HOT 2
- it tries to load docs over HTTPS HOT 1
- Swagger authorizations
- Support for zircote/swagger-php ^4 to allow Attributes and not only Annotations
- Add Support For 10
- app('request')->secure() Causes Mixed-Content errors behind a Load Balancer.
- get error on swagger-lume:generate HOT 1
- update to support lumen 10
- swagger-lume:generate throws error Class "OpenApi\Generator" not found HOT 3
- Support for latest zircote/swagger-php HOT 5
- Class OpenApi\Generator Not Found - Version Compatibility Issue HOT 4
- Config path may accidently remove all application code
- how can i add multiple swagger url in same project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swaggerlume.