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

Using gin-swagger encountered a javascript error, causing the google browser not to display the swagger api page, the javascript error is as follows #273

Open
Skobo opened this issue Jun 23, 2023 · 3 comments

Comments

@Skobo
Copy link

Skobo commented Jun 23, 2023

Uncaught ReferenceError: SwaggerUIBundle is not defined
at window.onload

@Skobo
Copy link
Author

Skobo commented Jun 23, 2023

javascript besides error
Uncaught SyntaxError: Unexpected token '?'

@nikhilchoudhary001
Copy link

nikhilchoudhary001 commented Jul 20, 2023

I'm getting same error on gin-swagger v1.6.0

Uncaught ReferenceError: SwaggerUIBundle is not defined
at window.onload (index.html:75:14)

@nikhilchoudhary001
Copy link

I was able to resolve the error by setting readTimeout and writeTimeout to 10 seconds (previously it was 5 sec and was unable to download large /swagger/swagger-ui-bundle.js content)

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