gin-swagger
gin-swagger copied to clipboard
Using gin-swagger encountered a javascript error, causing the google browser not to display the swagger api page, the javascript error is as follows
Uncaught ReferenceError: SwaggerUIBundle is not defined at window.onload
javascript besides error Uncaught SyntaxError: Unexpected token '?'
I'm getting same error on gin-swagger v1.6.0
Uncaught ReferenceError: SwaggerUIBundle is not defined at window.onload (index.html:75:14)
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)